tracks out of sync

why are my music tracks not synced. I have windows 10. audacity 2.3

Are you overdubbing? There’s a step in the overdubbing setup where you set Recording Latency. That’s so Audacity can tell where to put your new track so it lines up with your backing or click track.

That’s different from Machine Latency which is the time it takes for your new track to go into Audacity and then come back out. That’s not adjustable and it’s the reason not every interface or microphone can be used for Perfect Overdubbing where you listen to yourself as you perform.