From Middle English comper, from Middle French comper, from Latin compater, compatrem. Doublet of compere as well as compadre and goombah. Influenced by folk-etymological analysis as com- + peer.
Practice speaking and memorizing "compeer" and many other words and sentences in English.