Developers build apartments where they can make money from them, in other words where they can rent them for enough that they'll make back their investment. It's very expensive to build housing, so the only way to make the investment back and have low rental prices is to try to make the building costs as low as possible. A big part of those costs is the price of land.
Woke activists love the word "systemic" for a reason.
If a bunch of good people acting in good faith produce a result an evil mastermind would want does it matter if they are good? On many levels obviously yes, on some practical levels the system and the incentives still need to change.