Greek kóphinos entered Latin as cophinus. Anglo-French changed the n to r and carried the word toward Middle English cofre.
Anglo-French is compressed. Coffre is another Middle English spelling, not a separate compulsory step.
Sources
- Merriam-Webster: coffer
Greek kóphinos precedes Latin cophinus, Middle English cofre and modern coffer, with Anglo-French mediation.
- Online Etymology Dictionary · coffer
Meanings of the older forms on the word path.