Most shark attacks are in shallow water because thats where the people are. Not rocket science.
Sometimes off of Blacks Beach at Torrey Pines in San Diego you can watch the shark schools swim casually along the first wave break. The funny thing is when people enter the water near them, they scatter away from the "apex predator".
No, most shark attacks happen in shallow water because that’s where sharks and most other predator fish feed.