必要なことだったんだ。

It was something that had to be done.