The vaccines are not a prohibited drug and so in most places if you have full blown prescribing rights (e.g. a Doctor or most "Advanced Practitioner" roles) the prescriber can "go off-piste" and just prescribe anything they believe is appropriate. So it's wrong to say it wasn't "allowed".
What you're thinking off are vaccine recommendations which are shots you'll get badgered to do if you don't ask and those didn't include people assigned male at birth in many countries at first because the studies were about Cervical Cancer and obviously most people assigned male at birth do not have a cervix because that's quintessentially female anatomy [Mother Nature doesn't give a fuck, with billions of humans all kinds of weird edge cases arise]. Later studies checked that, as you might now expect, preventing HPV infection also avoids warts and other cancers induced by this virus, and thus impacts humans who don't have a cervix.