And I suspect an exemption from legislation requiring you to have a medical is different from a medical exemption.
Your suspicion would be incorrect but nonetheless is probably shared by the medical certifiers for whom the law is a mere bagatelle.
A regulatory framework built on exemptions is a flimsy nothing.