The sequence of depolarization and repolarization makes the electrical sign that triggers the contraction from the heart and also the ejection of blood. If each of the chambers contracted simultaneously, then blood couldn't move with the heart as the AV valves would avoid blood movement among the atria and ventricles. https://raymondhadgi.blogdeazar.com/29800817/fascination-about-polarized-heart