Honedge’s soul once belonged to a person who was killed a long time ago by the sword that makes up Honedge’s body.
Apparently this Pokémon is born when a departed spirit inhabits a sword. It attaches itself to people and drinks their life force.