Why does Uranus spin on it's side?

A comet hit it billions of years ago.