Generally the way these constructions work is that they use local resources (infrastructure, public education, subsidies, etc) and pay zero to no tax on the usage of it. Google has a presence in both the Netherlands and Ireland but pays very little taxes in both (if not none).
Basically what google does here is avoid general taxes in multiple countries (with the structure mentioned they can pay almost none in other countries as well) and still have offices and people working there. You could argue those people get paid, but since most countries (at least in Europe) burden both the employer and employee with the cost of almost everything public, it is unfair to the employee to let the employer not pay taxes due on usage of the infrastructure and public works and let the employer (the corporation) take advantage of it. The American view (I get) is that you are on your own and should arrange this for yourself as well, but due to this requiring quite substantial resources to pull of, it is unbalanced in favor of the corporations. You might consider it fair if they pay taxes as soon as the money is transferred to a person, but due to these schemes it never sees the light of day in any of the countries it was transferred from and thus doesn't go where it was supposed to go.
There are methods for people to do this as well in the two countries in the system mentioned, but it is way more difficult in terms of effort required and gains gained and impossible if you are an employee and not an owner of a (one man) business.