Think of it this way:
* Sunrise happens in the east.
* Sunset happens in the west.
This means the Earth is rotating in the direction that makes the sun appear to rise in the east and set in the west.