The aim is to have the trains leave on time and to ensure the security of the passengers. This information is stated on the train tickets. For example, TGV tickets state "Boarding possible up to 2 minutes before departure."