There are three possibilities:
- From the words Old English loc (“lock”).
- From Middle English loke, itself from loca (“enclosure”) or *Loca (“Loki”) (theonym of the latter).
- From Middle English locke, from locc (“lock of hair”).
- A surname.