Babies can't be bothered with trivial things like shame and insecurity. So, when this Dad pranks his little baby boy, it's mostly a gesture of solidarity.
"I'm with you buddy. We understand that pants are pointless and dumb."
"Dad, you read my mind and I love you for it. And for helping create me. That was pretty cool of you also."