Weird glitch I found

how did this happen

Seems like you have onion skinning on, you can disable it by clicking this button:
image
Or you can press 0 (zero) shortcut to turn it off.
Onion skinning just shows you what’s on the previous and future frame, this makes it easier to trace parts of the last frame which helps a lot with animating!