The story
The noun is a variant of dog's-ear, from dog + -’s + ear, due to the similarity of their appearance to the folded ears of certain dogs. The verb is either: * directly from dog + ear; * a back-formation from dog-eared; or * a variant of dog's-ear (verb).
Etymology from Wiktionary, CC BY-SA 4.0.