The traditional way I heard it wasn’t that it was about prestige, but rather that programming became engineering-coded rather than humanities-coded. And misogyny did play a role there, one of the Turing movies had a great story line about it, although I can’t remember the name off hand.
Related, I think math went through a similar transition.