When I went out earlier this year - the first time in about 10 years - my short ride turned into a long ride and I got a flat. Someone stopped to help and wouldn't take any money for the patch.
So two lessons learned for me, without any lecture. 1) carry a repair kit. 2) stop and ask about helping.
The person who stopped offered to fix the flat. Fortunately, I did it myself or there would have been a 3rd lesson learned - take a maintenance class.
I think you did the right thing when you stopped. Letting him fix the flat or fixing it yourself were both ok - you just decided on one way after you spoke to the guy. Hopefully, he's learned a couple of lessons as I did and will pass the kindness on.