Changing major after transferring

Optometry school pages like https://optometriceducation.org/student-profile-prerequisites/ do not seem to have any obvious indication of any preference for any undergraduate major.

For medical school, applicants and matriculants come from all kinds of undergraduate majors, although a little more than half come from biological science majors, according to https://www.aamc.org/download/321496/data/factstablea17.pdf .