Why is 2 pass a longer encoding time if the bitrate is the same? IS it literally 2 passes?

Thanks.
Wraith