Governments are responsible for setting safety standards, and enforcing that they do.
Tesla is responsible for the consequences of their actions. If their cars exploded when hitting potholes, and the government didn't stop them, Tesla is still responsible.