Knowing how much you could be paid is not all that important I would say. There are realtors that make millions a year, and software engineers that make just 20k a year. But the typical member of those professions make less and more respectively.
If you're looking to maximize your compensation, the best way is to apply to more jobs. Especially with companies that bring in a lot of profit per employee and who depend on the role you're applying for to do so.
If you're trying to figure out what to major in to make a lot of money, then it's hard to say. What's lucrative now might not be lucrative by when you graduate. I would say software engineering is almost certainly highest expected value times lowest effort. Which is not to say it's easy, it's just the other high confidence options are absurdly difficult (become a surgeon, things like that).
I would say that knowing how much you could be paid is actually really important, as is understanding why most people in a given profession *don't* make that much.
I personally found this kind of information so incredibly informative about various careers.
Sometimes you are better off knowing what your skills are and then targeting a field where those skills are rare and correlate with higher success and higher demand, rather than targeting a career where ALL of your competition have the same strength.
Being someone who can write extremely well and quickly won't likely get you far as a writer, but may lead to incredibly easy success in a technical field.
A friend with a gender studies degree and absolutely no engineering or science background has worked her way to a fairly high level writing about the energy sector. After years, she's become far less replaceable than the subject matter experts she works with, and she's very actively recruited.
I'm a medical professional, and BY FAR the most lucrative work I can do is working on the business side of the medical world, not the clinical side. So few medical professionals have business acumen, so the opportunities for me are HUGE, and so much easier to find than good clinical jobs, where the competition is fierce.
Since I medically retired from clinical work 5 months ago, without even trying, I've been outright aggressively pursued to work for multiple companies. Meanwhile, the new grads I coach are one of 200 applicants for part time clinical jobs that include evenings and weekends and shit pay.
That's just a few examples, but they show both how primary skills don't have to lead to skill-specific industries, and if you stop thinking about career skills that way, then school major also doesn't matter as much either.
In my personal experience, and that of the coaching I've done, and my previous experience in staffing. I've often found that people who do a step 1, 2, then 3 version of career planning tend to be walking face first into a lot more uphill challenge than they may need to.
Everyone and their parents are doing the same Google searches and angling for the same "high paying jobs", which is a slog. It doesn't take a ton of creativity to approach it in a less sloggy kind of way, but that info isn't found in aggregate data on the internet.