Apple is in sole control of which iPhones (et al) iOS upgrades published and when. They generally do so for several years after a model is announced, and every device can download the newer version on the same day. Even the 3GS got a cut down iOS 6.
For an Android device the decision is made by a combination of the manufacturer and (for phones) the operator. A device typically gets 1 or maybe 2 official upgrades beyond what it was sold with, maybe months after Google announced that version. Some get no official updates.
There's CyanogenMod etc. for those of us with the know how/confidence, but most people shouldn't/won't do that.
I've been once burned by HTC (Wildfire). One update after 3 months and that was it. Still runs Android 2.x. with countless major bugs, like 'when you click on one SMS message, it opens a completely different one'.
Is Samsung better in terms of update policy? Otherwise I will probably go with an iPhone this time.
It's very different now. If you buy a standard Android smart phone (not a low end / small screen device) it will be much faster and easier to receive updates.
Why are they so hard to upgrade?