I had that happen not that long ago. I messed up my spare, my pump wasn't working right, and my patch wasn't holding. So it took me a while to get it fixed. I can't tell how many cyclists passed me and didn't say a word. One person finally did and we rode back together.
Beats me, but I always ask people if they need help when they are stopped and working on their bikes.