Your body gets stronger while you rest, not while you train. How to handle cooling down, sleep, food and rest days.
Exercise deliberately puts stress on your body. Muscles, tendons and bones recover from that stress while you rest, becoming a little stronger to handle it next time.