Here's why:
* Rotation: Planets rotate on their axes. The direction of this rotation determines the direction of sunrise and sunset.
* Earth's Rotation: Earth rotates on its axis from west to east. This is why we see the sun rise in the east and set in the west.
While other planets have different rotation periods and axial tilts, the basic principle remains the same: the direction of sunrise and sunset is determined by the planet's rotation.