Content is optimized based on the SERPs the content should rank in, as well as important keywords/phrases related to the topic to ensure topical relevance across the entire page. There are also various UX factors I take into account, as well as E-A-T (Experience, Expertise, Authority, Trust).