Onsite optimization is part of the foundation for getting a page to rank for the keywords you want.
Optimizing the title tag & alt tags are some of the top ways to optimize for onsite. (See 2013 Ranking Factors)
I've had clients who received high quality links to a page, but their rankings didn't increase until after the title tags were updated.