According to the Stack Overflow Developer Survey[0] your intuition is wrong. C, C++, Java devs are paid less than average and F#, Clojure, Elixir devs above average. COBOL and Haskell didn't rank in the survey.
I 100% agree most engineers are severely underpaid. A lot of my colleagues get paid more than anyone in their family ever has (sometimes whole family put together) and just like to ride it out.