Honestly the logic is pretty sound! It's a page of lore but it does more to answer worldbuilding questions like why certain figures aren't dead and why certain creatures are in places they're not native to than... well than most shows nowadays.
It also helps legitimize Sun Wukong as a main character for such a global show. By medieval standards, his adventure was almost global for how far they traveled. Makes sense that all the pantheons would know about him. Does make me wonder if other wandering gods like Dionysus might have similar international status. I can see those two getting along, bringing out the worst in each other.