Don’t buy ground beef in the plastic sausage tubes. Costco and supermarkets that have butcher shops cut the meat from sides of beef and grind it in the store. Meat factories slaughter the beef and grind it into hamburger on site. Much more efficient and cheaper but also less sanitary because the E. coli lives where the cattle are slaughtered. When the sides of beef arrive at the store they are hosed off and handled on clean surfaces.
Also the same with pre formed frozen meat patties. They’re mashed into shape and frozen on site right after the beef is slaughtered.