Or do you just mean they aren't considered attractive careers to students and children?
Unless you're comparing the salaries in these to those of Bankers ... but that's a whole different kettle of fish, and there's the added complication that Bankers are actually actively disliked by an overwhelming majority of the population.
And even developers are paid badly when compared to our peers in the states and with other professions in the UK.
Compare what google pays in London to what it pays in say Kansas I could buy a house there (Kansas) out if my cash savings
You do know that the train driver on my commute to London is paid £60k for a 4 day week and most of them after overtime are on >£75k with a DB pension!
The UK has been known for decades as a place to get good engineers cheap.