How come I got pulled over for speeding from a state trooper that was in front of me going faster than I was?

I was driving down the highway and a trooper in front me going about the same speed pulls to the side of the road and when I pass him he pulls me over and gets mad at me for speeding when he was going the same speed. He let me off with a warning tho but still
6 answers 6