On-site Optimization refers to the process of correcting and optimizing the website itself, structure, content, media, page load speed, user experience, website responsiveness, mobile usability, etc.
This optimization may or may not alter the actual website layout, but it certainly matters as the website layout, readability, etc. is what determines whether your website visitors stay or leave, and whether they come back or leave for good.