One of these things precedes the other in time, however, which may be significant.
Building often happens because a developer believes someone will buy the homes they build. A lot of the time, they are right; some of the time they are wrong. Some developers will get buyers lined up first, to minimize the risks of being wrong; many do not. In the latter case, there's no inherent connection between the building and subsequent buyers.