It's said that gas emanating from a graveyard was possessed by the grievances of the deceased and thus became a Pokémon.