What prevents Samsung from doing the same?
Nothing except their own desire to sell you their newer phones. The telcos have very little to do with it since they still stop releasing updates for the unbranded version of their phones after a year or two after release.
I guess they just don't see it as a money-generating move.
Money is the root of all evil, and man needs roots.