You would attend a lecture because it was required by the course instructor.