Basically, the best way to understand most shark attacks is to think of the shark as a baby or a puppy dog.
As I'm sitting here typing away, I have the ability to pick up an object I am interested in and inspect it. Babies on the other hand, pick up the object and stick it in their mouth; which is the most sensitive part of their body. This is how the inspect it.
Puppy dogs do the same thing. The chew on things, even your hand, because they are curious....not because they are aggressive; there are exceptions of course.
Sharks are the same. They are curious animals that have no hands...just fins and a mouth. They see something in the water, they bite it to try and figure out what it is. You see them biting shark cages, outboards on boats, rubbish or any other junk floating in the water. Then they see a surfer. To them you look familiar but they're not convinced. So she swims over to you, takes out a chunk, decides you're not tasty and swims off...meanwhile you're missing half a leg and bleed to death. It's a tragic thing and highly unfortunate.
This is pretty much 99% of how shark attacks occur. People are really ever actually eaten. Most deaths are due to bleeding from missing/damaged limbs. A puppy nibbles on your hand out of curiosity and it's cute. A shark does the same thing and it's disastrous.
Sad but true

I think it is safe to say, if all the big sharks out there saw us as food then most of us going in the water would get attacked. The numbers of sharks and the small numbers of attacks supports this, in my eyes.