This is something I found on a post on here about soldered ram on another post on here.
*I asked why the MacBook Pro Retina has soldered RAM. Some replied that having soldered RAM allows the MacBook Pro Retina to be thinner, never mind that there are laptops as thin as the MacBook Pro Retina that have upgradable RAM. I am letting this one slide it now.
So, why does the 21.5-inch iMac have soldered RAM?
Also, why does the Mac mini have soldered RAM?
I can't help but to reason that this was done so that Apple can charge exorbitant upgrade prices at the time of purchase,*
Of course, that is the reason
After all, Scrooge McDuck ...I mean Tim Cook... needs more money so that he can build another solid gold swimming pool.

*For the iMac, a thinness argument can also be made, although thinness is a lot less of a concern on a desktop to pretty much everyone but Apple. The 27" iMac is thicker and has enough room for RAM slots and an access door in the back.*
I can,t understand why they have to be soldered on the iMac 21.5 Most of the ones I see being sold second hand only have 8 Gb of ram. Why people did not go for 16 I don,t know.
*For the Mac mini, I'd have to say it's mostly corporate greed. If everyone simply upgrades the RAM themselves, Apple loses a lot of money on their overpriced RAM upgrades, and it also means the RAM can be upgraded in the future to give Apple's entry-level Mac more longevity instead of getting rid of it and buying a new one. Edit: Oh, and soldering RAM directly to the board instead of using slots is also cheaper to produce.*
That would be understandable if the product was cheap.

[automerge]1587665988[/automerge]
The "drive soldered to the board" is almost a certainty on Macs that use a t2 security chip.
Probably going to be standard on ALL Macs before much longer -- because they'll ALL be using a t2 (or t3, or t4, etc.) chip in the future...
I was looking up what Mac.s have the T2 chip and see it only came in 2018.