Here's why:
* "Fit" is the correct past participle of the verb "to fit".
* "Fitted" is the past tense of "to fit", but we need the past participle in this context.
* "Would have" is used to express an action that was possible but didn't happen in the past.
So the full sentence is: "It would not have fit."