Consider that if Microsoft had put an office in the DC area in the mid 1990s we would all be shopping at some e-commerce behemoth owned by Microsoft.
The reality is that for a company like Amazon, regulatory risk is the biggest existential threat to the company's future, and the only way to fight regulatory risk is through extensive lobbying and various legal forms of bribery that involve lots of face time with powerful officials.