With each contraction, energy in the form of ATP gets used up, waste products like lactic acid are generated, and some ions drift away from the muscle’s cell membrane, leaving a smaller and smaller group behind.