There are 3 classes of e-bikes in the US, with class 3 topping out at 28mph—anything above that is illegal or in some weird legal grey area. You are thinking of e-motos which are an entirely different beast.
e-motos are a real problem; please don’t lump legitimate e-bikes in with those. It’s simply incorrect.