In Canada, it's outright illegal to sell a burger medium done. If you get caught, your restaurant will be closed for a couple weeks minimum, along with a hefty fine. It must be fully cooked, or not served.
It's ground beef. The rule is you must cook it to the proper internal temperature. This is reasonable food safety. This simply precludes medium as an option.
If they grind their own meat or use something like ground chuck or ground round you can get it medium.
Bacteria contaminates the exposed surface of foods. Pre-ground meat has a _lot_ of surface area exposed so the potential for contamination is high. If you get your meat as a chunk of chuck roast or larger primal cut, follow good food safety practices in how you maintain your workspace, and then grind the chuck and turn it into patties to be grilled the probability for serving a contaminated product is low.
The problem is that this is more expensive and time consuming so almost no one actually does this in a commercial setting. If you tell me you do this when I come over to your home cook-out I will possibly trust you to serve me a burger with some pink in it, but if your restaurant tries to sell a $6 burger that you let someone order medium-rare bad things are going to eventually happen...
Some meat sellers mechanically tenderize (blading) their cuts of beef. This may cause E.coli on the surface of the beef to enter the interior of the beef. Costco was linked to E.coli cases in 2012 due to this practice. See https://www.consumerreports.org/cro/magazine/2013/06/has-you...
Same in UK. Family members keep asking me when we travel there "will my burger be done right". Uhhh..there's only one kind of doneness for a burger in these parts.