Given that they went to considerable effort to carve it in stone as part of a temple complex, it was likely neither juvenile nor perverse
Some people like making others laugh, maybe they thought we'd appreciate it
Have I got some ancient Greek theatre to show you?
Wait until you see some of the carvings in Gothic cathedrals.
I think you underestimate the amount of effort people are willing to put in to being juvenile or perverse.