As frontend developers we account for aesthetic as well as functionality . JS passing to PHP, passing back to JS etc,etc. Its not there to make you feel like you’ve contributed to making the site aesthetically pleasing, more a way of introducing sleek and seamless interfacing and functionality to the user, thus contributing to the user experience.
A good Front-end developer understands this relationship and can see functionality, interface and aesthetic as 3 different entities that combine to provide one great experience.