In ancient Egypt, the direction east was considered the direction of life, because the sun rose in the east. West was considered the direction of
death, of entering the underworld, because the sun set in the west.

Source
The pyramids are on the East side of the river Nile, so I believe this is why no one was actually buried in a pyramid. The tombs are all located on
the West side of the river Nile