Inherited from Proto-Slavic *gorxъ, of which the direct reflex is грав (grav), with the suffix + -ок (-ok).
грашок • (grašok) m