Look at most science degrees and you get nowhere near the salary that a FO gets,
Well depends on what you are doing though, if you have a Maths/computing/finance type of science degree you are going to beat most pilots in a career. You are also generally promoted into management where you start getting paid big money. You can’t compare a graduate’s salary to a airline FO because you don’t walk off the street into a FO seat. Compare someone with a science degree and 10 years experience with the FO and see what the comparison is.