I wonder if it was deliberately humorous, which would add another dimension.
I know that the Incas had statues that were basically hardcore pr0n. I’m not sure the reason. Probably fertility stuff.
Like this thing - maybe it's mocking someone? Who knows.
[8000 years earlier]
"Man": "Yea, so Gary over there cut down my favourite Olive tree so I commissioned this huge statute of a dick to let him know how much I hate him"
My favorite example is that of two Roman men apparently living together as a household and having items with very graphic depictions of sexual acts between men. They were obviously two very heterosexual men (maybe brothers) and the depictions of men ravaging each other's buttocks were probably a fertility or sports thing.
I may be wrong but I don't believe that the reason that bathroom stalls are frequently adorned with crude sketches of penises is "fertility stuff" either rather than just "lol dicks" and I don't think it's a stretch to extrapolate from this to prehistory.
There's a very real possibility that this is just a 12,000 year old "realistic human statue" of some bloke double-palming his stiffy (which according to the article is incidentally near a relief of another bloke presenting his stiffy one-handed with the other hand on his stomach). Yes, a two meters tall statue takes quite a bit of effort and suggests more than one person being involved in the process but that shouldn't be surprising.
It is said[^1] that the God of the Jews ravaged Pompeii because of polarized views on the matter of sexuality. A bit later, they won the war for the heart of Western culture. So, yes, those bros had those statues and depictions for the sake of fertility and sports, and our modern occidental brains[^2] will keep glitching when told otherwise.
[^1] https://www.youtube.com/watch?v=haP5MoLyWGw
[^2] In case you feel tempted to say those Western values have always been universal: https://en.wikipedia.org/wiki/Phallus_paintings_in_Bhutan
Your second link just emphasizes what I said: weiners don't universally mean "fertility symbol". I don't think the blokes drawing peckers on bathroom stalls do it either as a fertility symbol nor to ward off evil spirits, so this still doesn't address that other motivations can exist.
Also Pompeii is an actual place that was "ravaged" by a volcanic eruption, not "the God of the Jews". Unless you want to pin actual natural disasters in actual places in actual recorded history on a god of the gaps, I don't think sexuality had anything to do with the volcano.