They didn't think you were homeless. They correctly saw you struggle to buy a 10 dollar pizza with change from your pockets.
Most people will use a 20 or a card.
Yeah, you didn't "need" the help, but that helped you nonetheless.
Also I know this isn't OP so my breath is wasted, but people need to realize you don't need to be homeless to be in a rough spot. You can be working poor.