What could cause a rapid heart rate?

I had an episode of rapid heart rate. Why?