It’s most likely because the desktop market is so small today the average consumers are not buying them
Then who is buying iMac and iMac pro? How much effort would it really take to keep a product they continue to offer up-to-date? If it’s true nobody is buying it then simply discontinue it.