Indeed - polar bears aren’t like any other kind - they view EVERYTHING that moves as potential prey/snack. There are no other alternatives available.
Plus, they’re one of the largest bears on the planet, rivaling Kodiaks - if they can get to you, you’re dead.
I saw a video some years ago of a videographer who locked himself in a steel cage and took video of the polar bear encounter. He didn’t get eaten, but it wasn’t for lack of trying by the polar bear. It was PISSED OFF that it couldn’t get at the tasty morsel inside, was slapping the cage violently, biting the bars such that blood was coming from his gums, etc. I’d have wet myself, it was something else. I forget what they did to get the bear to move along, but the whole thing was quite memorable. Crazy videographer if you ask me.