しまったのです

ended up …ing

→ 仕舞う
phrase Uncommon #9,300
ended up …ing しまった adds a sense of completion, often with regret or an unintended result. のです gives the statement an explanatory tone.
JA: うっかり財布を落としてしまったのです。
EN: I accidentally dropped my wallet.

通りに飛び出してしまったのです。

I ended up darting into the street.

私はそのまま気を失ってしまったのです

I passed out just like that.

— 羅生門 (1950)

津波で流されてしまったのです。

It was swept away by the tsunami.