In one place the people were safe.
Yes, in the ark.
God had told Noah to make the ark.
Noah loved God. He believed what God told him.
The people did not love God. They did not believe what God told Noah.
They did not believe that God would send a flood.
But the flood came.
Noah and his family were safe in the ark.