Friendly local government is a big factor.
For example: Google looked at Seattle's NIMBY laws regarding utility boxes on sidewalks (each requiring a lengthy community approval process) and said, "Nope!"
Seattle's new mayor is now looking how to streamline the process to make the city more Google friendly, should the opportunity arise again.