The most common reason for this error is that someone else is using your account, knowingly or unknowingly to watch the YouTube videos. The other reason is the autoplay mode. When you land on some spam YouTube page and your Autoplay is turned on, it will start playing random videos which will then appear on your YouTube history.