Fossilization of the adverbial form of あまねし (amaneshi, classical adjective). See that page for further etymology.
あまねく • (amaneku)