The power of friendship is always present in Japanese media, so it's common for some JRPG enemies to become friends as the story unfolds.