Here's why:
Coding alone can make you forget the bigger picture. Once you touch design, even just a bit, you start thinking about flow, what comes first, and how the user moves through things.
That mindset changes how you write your logic, build your components and fix issues.
The code ends up not just working, but feeling planned and purposeful. Most importantly, to your users.