The use of that term indicates it wanted to eat them, otherwise it could be a territorial or even protective attack if they have cubs around. The way I’ve always heard it if they’re busting into your tent they’re hungry and fight them for all you’re worth because their goal is to kill and eat you. If they jump you on a trail it could be territorial and if you play dead they may tear you up some and leave you alone. And if you see a cub, get away as fast as you can.
I was backpacking in the Bighorns in northern WY years ago and something big brushed my tent in the middle of the night. Talk about waking up wide awake, I grabbed my M1911 next to my pillow quick as a cat and got ready to empty the magazine out. I had it loaded with the safety off which is the proper way to keep it ‘at the ready’ since they have a grip safety. Anyway much to my relief after a few seconds I heard it walking off. I waited about 10 minutes and jumped out of my tent flashlight in one hand and pistol in the other and checked the perimeter to make sure nothing was there waiting for another try before I got back in my bag. Looked all over for tracks in the morning but never found anything, dry rocky ground.