They aren't that crazy, where else would you build them... France, Italy? German labor laws are pretty average for western Europe.
You need stability, skilled and productive workers and it wouldn't hurt to have a chemical industry, Germany has all that.