Usually phones and other computer systems with non-expandable RAM have their RAM chips soldered directly onto the main board. Building this way is slightly cheaper, but more importantly, it’s a smaller size.
Starting with the original iPhone, the trend has been to make phones as thin as possible. Phone makers are afraid all the extra mechanical stuff you need for expandable RAM will make the phone too thick, and people will refuse to buy it.
Latest Answers