The story
Initially from primer (“prayer book”) from its use in those volumes in Protestant England. The qualifier was subsequently added to distinguish it from great primer and may derive from early editions published on long duodecimo paper.
Etymology from Wiktionary, CC BY-SA 4.0.