のでした

it was that

→ の
phrase Rare #40,639
it was that An explanatory or emphatic past ending, often used in narration. In English, it is often left untranslated.
JA: 彼はずっとここで待っていたのでした。
EN: He had been waiting here all along.

ところがその香水は、どうも酢のような匂いがするのでした。

But that perfume had a smell rather like vinegar.

彼は昔、押し入れの中には珍しい生き物が住んでいると彼女に嘘をついたのでした。

He once lied to her, telling her that a rare creature lived in the closet.

じつにそれがうまく合ったのでした。

It turned out to be a perfect fit.