This is a way of saying.
The original intention of the story seems to be to describe the scene of the jade emperor becoming an immortal. He didn't want to give up his relatives, even his chickens and dogs, so he took them to heaven.
Now this sentence is full of irony.