Obviously (most) governments want to avoid a situation where a foreign entity is strong enough to destroy any local competitor and on top of that, contribute nothing back to the economy in terms of tax revenue. It's completely ridiculous.
If you deliver goods and services in a country, you should expect to pay the appropriate taxes in that country. It is completely unjust that Google et al can do this kind of thing, it puts local companies at a massive disadvantage.