Why is it "two hours' journey"?

I usually pass C1 tests but this A2 test question got me curious. I got "BC that's how it is"when I asked my teacher.

I usually pass C1 tests but this A2 test question got me curious. I got "BC that's how it is"when I asked my teacher.