Hello.
In the winter bears hibernate because food is scarce during the winter, and it is also very cold. During hibernation a bears body temperature drops, and they do not go to the bathroom. This helps them preserve energy as they sleep throughout the winter. Which is what keeps them alive.
Have a nice day