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

Do "the ocean beach" and "it" have the same meaning?
yes