The higher number of shark attacks may also have to do with water conditions, which could lead a shark to mistakenly interpret a human as food or competition for food:
"A large number of (shark) bites occur when water conditions are poor"
- https://saveourseas.com/worldofsharks/why-do-sharks-bite-people
Sharks on the other hand, swim in waters people tend to frequent.
It's a numbers game.