The loans were not a favor. The loans were to pay back German and French private investors and transfer their exposure to Greek insolvency to the IMF and ECB.
Greece didn't actually get "billions in loans". It got billions of dollars laundered through it's account books and back out to private investors to protect French and German interests.
But I'm mostly ranting at the internet tough guy outlook which is why Greeks are voting down austerity measures as they are: they are a sovereign nation, no you don't own them, and if you're wondering where you tax-dollars are maybe you should ask why your government loaned them all to Greece in the first place?