Med students accumulate horrendous debt and don’t actually make real money until they finish both med school and residency. That’s an 8 year lag in money making compared to a comp sci grad who goes into tech.
That is why mostly people with wealthy parents will attempt med school. You can trust me, I lived with med students in a living coop for some time. Where CS students rent an apartment in a 30 story block on the outskirts of town, med students live almost in the center and rent a whole house together. It's not even comparable.
And do you think anti depressants get paid by health care? Someone needs to buy them as well. Most CS students I know are happy when they can afford the frozen pizza from the super market.
And that's also the main point here. It is a sign of wealth that you can worry about depression. If you are not, then you are also depressed, probably even more so, but can't spend time worrying about it because you worry about rent and food.
So I'm supposed to trust your anecdote on the wealth of med students based on you living with med students for some time? I went through med school and have many friends who went to other med schools. There is a wide range of med schools and support mechanisms. While it may be true that premeds come from wealthier backgrounds than CS students in US, that's something that needs separate sources. If you think CS students are happy when they can afford frozen pizza, it differs from my memory of CS at Stanford, so there's also a huge range of affluence among CS students depending on where they go.
Also if someone is diagnosed with clinical depression, insurance will definitely pay for antidepressants. That diagnosis can be made by student health.