So it was a scam.
The cop’s generosity was genuine. The bum’s need...yep, scam.
He didn’t really want shoes, he just wanted a few bucks from each passerby.