Respuesta :

When it gets hot, rails expand.  The gaps in the track allow for it to expand straight, but if there were no gaps, it could expand in unexpected directions, so it could be very dangerous for a train to go over it because they could be bent.