For what purpose are 'odes' written?

In remembrance of, so that everyone knows that whatever the ode is dedicated to, it is worth remembering for generations to come.