Why is the assessment module locked for a learner who has completed the assessment?

Assessment module shows Locked after learner completed and reached passmark. The module locks when the learner reaches the final allowed attempt regardless of pass or fail; unlock the learner by clicking the Locked button. Questions this answers: How do I unlock a learner who is locked out of an assessment?