I think it's mainly that from 2006 to 2019, the iMac was the only mid-tier desktop that Apple sold. Today, you can get a Mac mini or MBP that's the same or faster than an iMac.