What would happen if Apple let other hardware manufacturers use macOS and iOS for free?
If Apple gave macOS and iOS away to other hardware makers, people would buy the cheaper hardware and Apple would go under, taking its operating systems with it. We've seen this before: in the 1990s Apple licensed Mac OS to clone makers, Mac sales dropped, and the company nearly died. One of the first things Steve Jobs did when he came back was end the clone program, and Apple returned to profitability almost immediately.