On those campaign swings, somebody plans in advance for the President to have some cash to use for those photo ops. However, under normal day-to-day circumstances, presidents do not have any cash, credit cards or ID on them. I'm not sure why, and it certainly was not always so.
A bit like the Queen then