Exercise uses energy, and when energy expenditure exceeds energy intake, the difference is made up by burning fat.
Improving one's cardiorespiratory fitness and muscular strength and endurance can help improve one's body composition by changing the ratio of body tissue to fat.