To control your opponent's range and position and to see how they respond to different punches and feints.

Boxing is about thinking 2-3 moves ahead.

Make your opponent move where you want, throw the punch that you want, place their guard where you want it etc.

When you know how they respond to a certain punch then you can be a step ahead and ready to take advantage of their response.