When they arrive in Barcelona by train, they show their passports at the customs in the railway station. They are British, so EU citizens, and they arrive in a train from France, there is no need of crossing the customs in Barcelona and they do. It's just absurd unless they arrive by plane.