Way back when I used to fly helicopters, occasionally along the beach, I was amazed at the number of sharks you could see in fairly close to the beach.
At least in Florida.
There are sharks in the ocean, it’s not some sort of freak occurrence. Here in NC it’s not at all unusual to see hammerheads and other, smaller sharks fifty yards away from surfers when looking down from a pier. The sharks are just beyond the breakers.
A strong suggestion would be to stay well away from fishing piers when swimming or surfing. Stay well away from people surf fishing, too, and not just because of the lines and the hooks. Ocean swimming in low light and at night is more dangerous as well.