I don't think all tracks have this kind of arrangement, I believe in most places the teams stay in hotels.
Anyway, this brings up what I think is a pretty interesting thing. Many of us like to criticize Tilke for the tracks he has designed, but while there might be some pros and cons in relation to the track layouts, one cannot ignore the unique features he's brought in.
If we take China as an example (the Shanghai International Circuit was designed by Herman Tilke and Peter Wahl), not only does it feature that unique buildings complex which was inspired by the design of the Yu-Yuan Water Gardens located in the center of Shanghai, but it is also a true heaven for spectators on the main grandstand, as 29,000 of them are able to see almost 80%(!) of the entire track:
One more interesting feature, which some claim was made accidentally is that the track layout, when seen from above, resembles the Chinese character "shang", which is the first word in the name of the city - Shanghai.
It was indeed built on swampland.