Why is Uranus on its side?

Uranus was knocked off its axis due to a collision with another large object passing through space . The object was nearly the size of uranus.
All planets have a tilted axis. The Gravity of the Sun and other planets force the tilt.