The cave bear (Ursus spelaeus) was a species of bear that lived in Europe and Asia during the Pleistocene and became extinct about 24,000 years ago during the Last Glacial Maximum.
Both the word "cave" and the scientific name spelaeus are used because fossils of this species were mostly found in caves. This reflects the views of experts that cave bears may have spent more time in caves than the brown bear, which uses caves only for hibernation.
Well, the article states different, but also to me this seems highly unlikely. Also because apparently this cave bear was not found in a cave.
S/he is saying they were selectively preserved in the fossil record while they were there. So if they died there, we would find them, whereas megafauna in the open would be lost to decay and would not fossilize.
the article does suggest they actually did live in the caves "full-time" though:
In fact, most cave bear fossils have been found inside caves,
and paleontologists think these bears probably lived in the
caves full-time, rather than just popping in for a quick
four-month nap. Across Europe and Asia, bears and people
probably competed for the same real estate for around
300,000 years; it probably wasn’t much of a contest, though.
These lumbering Ice Age giants stood 3.5 meters (11.5 feet)
high when they reared up on their hind legs, and the largest
males weighed up to 600 kilograms (1,320 pounds). That’s
about the size of a large polar bear or Kodiak bear today.
You wouldn’t want to meet one in a dark cave.[1] OK, not precisely this, my questions were: "Why do only the cool animals get to have a cave version? Was there no cave weasel, cave bunny, cave vole? Also, who would win in a fight between a honey badger and a cave badger?"