Interesting that Welshmen are shown singing in a music-hall Cockney accent!
Maybe they (and maybe the soldiers who sang the WW2 versions) thought of it largely as a kind of black humor.
Cf. the less ambiguously derisive "She was Poor but She Was Honest," also generally sung in a Cockney accent.