The recorded audio will have a time compression phenomenon at the beginning

The recorded audio will have a time compression phenomenon at the beginning. For example, the same piece of music (a few minutes long) is recorded twice, and the two audios are compared on the track. The waveforms in the first 20-30 seconds are not aligned. The recording device is UR22c, and the recording tool is Logic Pro.

Anyone know why?

Thanks!