Because they want to move in and can afford it. Same reason that apartment complexes have to add greenspace or subsidized apartments as a condition of getting a zoning variance.

Maybe not a great example. Municipalities should fund public works projects themselves using sane taxation revenue instead of cryptically taxing private land improvement projects.