Does this apply to shark attacks in the ocean for hotels which prominently advertise their beachfront status?
It doesn't, anywhere. I'm not aware of any case where it did.
It really comes down to one simple fact. The natural world is full of animals, and some of these are dangerous. The distinction between when it is or isn't an individual's decision to accept the risk, however remote, of a wild animal attack in any landscape known for wild animals, is, so far as I can tell, being applied completely arbitrarily. It is always a risk you accept, whether a given individual wants to own this responsibility or not, when you enter a natural landscape, and certainly if you do so against warning signs that particular areas are not safe or intended for recreational use.
It is this baseline expectation, that areas of the natural world should have been sterilized for your safety regardless of whether you exercised poor judgment or ignored signs and chose to enter, that results in both the outrage and the retaliatory killing of wildlife that you see in virtually all of these cases. There is absolutely no reason for anyone to go around with this expectation, least of all when they are guarding the lives of children who cannot make safe decisions.