You're next to the general store NPC and bank NPC, you can easily go to the general store NPC, buy something, go next to the bank guy quickly, and make a screenshot, though you'd be very fast in order to do that, it's possible.
And you could've put the rest of your money in the bank, or give it to a friend or so.
Or it could've been a glitch/bug.
It would all be possible, and it would be kind of impossible for us to see if you got bugged/glitched or did it on purpose.
BBCode