Yes, in music (and much of the arts), there's an expectation that if you're enrolling in a program at school you have some degree of prior exposure.
But mechanical engineering? Chemical engineering? Economics? I'd argue that kids going into those fields may have read a bit and maybe tinkered a little at the periphery. Maybe in the case of ME they were in a robot competition. Etc.
But, in the case of pre-calc physics in HS for example, it barely gives a hint of what being a physics major would be like.
I actually don't know how much exposure to programming there is in HS. I assume essentially no "CS" per se but then, they wouldn't have the math for the most part. But I'd argue there are actually a lot more opportunities to get exposure to computer-related stuff than there is for other fields.
(To the degree, per my other comment, that there is something of an expectation at many schools that incoming students, like music majors, will have done so.)