Schengen Agreement.
My understanding of the agreement is EU countries signed up to it except the UK- Ireland and possibly some Scandinavian countries. Switzerland is not a member of the EU.
The agreement allows for free passage across borders within Europe,which is why passengers can mix at some airports,but not in the UK etc.
The whole thing is long winded to read, but just google it.
Jubilee