From Middle English a pece. By surface analysis, univerbation of a + piece.
Improve your pronunciation
Practice speaking and memorizing "apiece" and many other words and sentences in English.