You would attend a lecture because you want to say you heard a particular lecturer.