Weird record error

I had something yesterday I’d never experienced before. All of a sudden, the audio I was recording on a track was not what was live but something the singer had said a while before. This happened a few times and I turned everything off and re-booted and it happened again but then went away. Talk about “ghost in the machine”. Any ideas what could have caused this?