> Or is it deliberately done because it is cheaper?
Well, of course it is.
> Why not have these in France proper giving jobs to French people?
Because you would have to pay them French wages, which would make no economical sense. If anything, the fact that most of that industry is abroad probably makes it easier to pass such a law.
So, same for any profession. Why have any jobs in the EU at all then?