We went to the lake , because a shark had been seen at the ocean beach , so *it* was a safer place to swim.

Are "the lake" and "it" the same entity?
yes