Does anyone know why this happen?

I was playing around with the radio on my car and found out if I switch to some of the AM frequencies the sound coming out matches up with my cars speed and plays differently based on how i drive and sounds like an engine. My car is electric so the sound was just coming from the radio. Does anyone know why It does this?