Why would you want to tax a startup that isn't making any money? The whole point of government taxation is to generate revenue from profitable business activity occurring there. Taxing businesses that aren't even making money is ridiculous.
And sure, you can shift where profits are generated. But you can also just not be in SF. Which is exactly what's happening.