It comes directly from the Old French word "armari", which itself comes from the Latin "armarium" meaning "cupboard".