Military, especially Navy SEALs, are a lot more trained than police are, so their standards of behavior are higher. In US it takes 2-6 months to become a cop. In Germany, for comparison, it's around 2-3 years.
Not to say the military is perfect by any stretch. You still have your portion of GI's committing crimes and scandals at various levels of organization. And you still have problems someone of a higher rank can get away with stuff because of their power over subordinates. But by and large the military has much stronger mechanisms to maintain and enforce accountability than the average police department.