Yes. I agree with BoulderJohn that instinct may well play a role. The angle I'm coming from is observed experience. We've seen shark feeding dives where people have close encounters with tiger sharks. We've seen videos of free divers diving down to, and touching, large great white sharks, and situations where an unanticipated great white showed up on someone's dive, got close, and yet...didn't attack.
For whatever reason, it seems to me large, dangerous land-based predators have a stronger sense of 'personal space.' I can't imagine a park ranger approaching and putting his hand on a wild leopard. Even if he were insane enough to remain calm and attempt it, I don't think the leopard would tolerate it. I doubt trying it with a wild tiger would go well, either. The animal might run off rather than attack, but my point is, I think it would feel threatened or at least antagonized in a way some marine predators don't seem to be.
Look at how untrained wild dolphins sometimes interact with humans. They are tremendously unrelated to sharks, and yet they, too, are sometimes willing to be in close quarters with humans.
What land-based large creatures (predator or dangerous herbivore, like hippos, elephants and cape buffalo) show similar tolerance to have us in their space?
Sure, I think personal experiences are what people heavily rely on when it comes to decisions we make.
And statistically, divers are definitely much less likely to have a bad encounter with a shark than folks on the surface.
But I've seen crocodile feedings go fine on youtube. Also seen videos where that wasn't the case.
Similarly, there are grizzly / bison encounters that don't go bad.
There could very well be something to territoriality of land predators vs most/some shark species that are more pelagic and/or roam vs maintaining a small predatory area.
But I think its just as likely that its simply about size.
Average reef shark < 100 lbs, so smaller than average person encountered.
Average bull/lemon/oceanic shark around 200 lbs, so similar size to average person encountered.
Leaving only a few species of shark that are on average considerably larger than a person (tiger/white).
Whereas avg grizzly seems to be around 400lbs, crocodile 300-400, bengal tiger 250-300.
Bison 1k - 3k lbs...
Regarding dolphins, not sure if you're suggesting that aquatic species in general are just nicer or more tolerant? That said, I've had only one encounter while diving with wild dolphin, it was cool, I've also read of them ramming people. And of course with a larger species in the dolphin family, orca, there's some good anecdotes where maybe giving them space would be wise. I think that's more a combo of intelligence and size again.
Intelligence leading to curiosity, and size leading to mostly harmless curiosity.
There very well could be something too territoriality differences on land vs in water, but would that be differences in the species or the environment? You have to be close to things underwater before you can see them... that's not the case on land.