It's called code sharing - been going on for 40+years worldwide. recently rebooked on an asian carrier after the Beluga connection in SYD was missed due to late out of BNE.
You are not buying the seat on an airline. There is no ownership. You are renting space.