Strange leg muscle pain

I had just enough time to spin on my trainer for 45 mins. before work, hadn’t done anything differently than other times. However about half way through I started to get a pretty nasty pain in one of my quads, the vastus medialis to be exact, this has never happened before. It didn’t cause any residual knee pain, in fact I ran 10k the next day and felt nothing and actually had a great run, but the pain in general was still there. It did go away over the course of 2 days but I haven’t been back on my bike yet. Any idea where this came from?