Apple had a dominant position in selling music and in music players by 2006. It was the number one music retailer in the US. It very much used that to get into the phone market and part of its early success in the App Store was that it was built on top of iTunes and it already had more credit cards on file than any other company in the US besides Amazon.
If you're not arguing that a company shouldn't branch out, are you arguing that once a company gets a certain size, it shouldn't be allowed to invest those profits and resources into another industry?
By 2011, Apple was the most valuable company in the US. Should it not have been allowed to start selling watches, home stereo equipment and AirPods?