Also germany needs some cheap labor but manufacturing isn't the main part, manufacturing is actually quiet expensive due to strong unions in germany especially in car manufacturing etc.
and yes, brexit happened also because of these things, but as you can see now, letting foreigners in doesn't need to be bad, it's more the other way around, you can't find truck drivers, bus drivers etc. anymore in the UK.