In many cultures, people become ghosts usually because they have unfinished business or lingering feelings, just something important and personal to them that they couldn't achieve while they were alive. I suspect this is the case here too, since Mitsuba couldn't make friends before he died, or...