Question

In a railway track, two rails are joined end to end with a gap tin between them because?