iMessage uses it’s own protocols and shit that are proprietary, and uses the standard sms protocol as a fallback. Android can use something called RCS which catches up feature wise, but doesn’t play nice with apple.
It’s to create an illusion of exclusivity and therefore social pressure to use an apple device.