Why is the nucleus near the edge of the cell?

The nucleus is not located near the edge of the cell, it's near the middle of the cell. It's the brain of the cell.