You can, sometimes:
https://en.wikipedia.org/wiki/Rooting_(Android)
The Wikipedia article explains it quite well in the introduction. The fundamental difference lies in the economical model of smartphone sales, where you may be limited (legally or technologically) in what you are allowed to do with the hardware by the carrier or manufacturer.