Under EU law, after 3 months, EU migrants need to be working or have funds to live. If not, they can be returned to their home country. The UK doesn’t do this, nor does it register migrants as they arrive.
Uncontrolled immigration? Don’t blame the EU. Blame the UK Government.