It's also a financial optimization: Even with the very expensive RAM upgrade prices, it's way better to use the same memory chips to manufacture and sell four Mac Minis or two Mac Studios, rather than a single high-RAM unit.