Is this a Buddhist poem?
I think you are confounding Buddhist principles with Japanese culture - of which veneration of the dead is an important part.  If there is one thing you can say about Buddhism, it's that it doesn't exist in a vacuum and often takes on the cultural customs of its practitioners.

Besides, it's a poem.  He's trying to capture a moment for an audience, not make a statement about the dharma.  ;-)