With an SD card slot, users can just buy the baseline model and get an SD card from another vendor. That money does not go to the manufacturer.
So manufacturers have an obvious incentive to produce phones without an SD card slot.
Moreover, there is little incentive to produce phones with an SD card slot. A long-time iPhone user isn't going to switch to a non-iPhone just because of the lack of an SD card slot.