As the train moves heat is produced due to friction and due to heat rails expand. If no space is left they will bend.