
"Colour does not tell you if meat is safe. Only a thermometer does.
"USDA FSIS guidance, paraphrased
On a steak, bacteria such as E. coli sit on the surface, and searing the outside kills them. When beef is ground, that surface is folded through the whole patty. The middle of a burger starts with the same bacteria as the outside, so the centre must reach 160°F (71°C). This is also why a rare burger carries a risk that a rare steak does not.
The 3-minute rest for whole cuts is part of the safety rule, not only for juiciness. The temperature keeps working on the bacteria during the rest, so do not cut or serve before it is over.