A new small apartment in San Francisco cannot be built for less than $800k these days, so coming in a $333k per resident is not too surprising to me in a similar high-cost city with a building with a ton of amenities.
If they already own the building, it is only construction costs whereas buying an apartment is possibly extortionate land or property prices from the current owner, which is purely demand-driven.