It’s considered socially crass to
just care about money in life (see: Ebenezer Scrooge), but everyone does a job for money - very few jobs are actually altruistic. There are many jobs that few would do if not for the high income (eg Lawyer) or is just difficult or boring. It’s a given that the income is a motivator in a high earning job.
Answering why you picked this particular path to high income is more interesting of an answer to the person asking and carries the conversation. Did your parents do it, did you have a professor that captured your attention, did you just google “easiest job to make a lot of money?” and pick the first one?
Someone asking wants to understand how and why you make decisions. What motives you. Etc. It’s the XY problem and from the other person’s perspective, you’re answering the wrong one.