Communities have rights, and they can be overridden by larger communities that include them. Just as a majority can override the wishes of a minority. In this case, the state of CA, a larger community, has overridden the wishes of pricey Bay Area towns. Los Altos Hills, Atherton et. al. are not sovereigns.