A gift would still follow the state's laws on firearms transfers and eligibility, which can involve various forms and middlemen. With a straw purchase you're just handing the gun to someone else.
It's more of a gray area when it's an intrafamilial transfer.