This is interesting. The EU is not a ‘union of states’ but a collection of sovereign countries. In spite of that, A Polish citizen can come to the UK, live in temporary (often slum) accommodation, but claim UK state benefits for his children who live in Poland. Go figure?
Of course the reverse applies too, but state benefits in Poland are far lower if they exist at all.