In Old French, adjectives ending in-ant often had identical masculine and feminine forms, so that the adverbial form ended in-antment, which resulted the loss of thet between then andm, leading to-anment and then-amment.
-amment