My dad is a professor of emergency medicine. There are med students that come through in their 30s or 40s (none are former CEOs). It’s obviously not as common as people in their early 20s, but that may just be a self-selection thing (rather than bias against older candidates per se).