>>24545646because of higher powered moves and super high utility. Not because Ghost is inherently inferior.
If anything ghost is inherently superior but loses out because there are no decently strong ghost type moves
Ghosts also tend to have superior support moves with wil-o-wisp, pain split, destiny bond ect. Being immune to trapping also even further helps this function.
But STAB foul play is god like.