Right to repair, why is this a thing?

In the computer science industry, there is a lot of expensive electronics involved. It has improved over the year to be more and more efficient, but the cost has also risen. The problems is when these electronics broke. It has become way more difficult to repair them. They have become very sophisticated and finding replacement parts have become a real quest.