I think that it's because he wanted his life to be worth it and he wanted to be remembered so that if that movie Coco was real he won't suffer the "Final Death"
MEEEEEEEEEEEEEEEEEEEE TOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
And when the time comes
Explain to the children
The pain and embarrassment
You put their mother through
When will you learn
That they are your legacy?
We are your legacy