How it works
は (topic) raises 熊 (bear) as the topic — “as for the bear…”. に (to) points to the goal of the motion, the 木 (tree) being climbed. The verb is the potential form 登れる (can climb), built from 登る (climb), which says the bear is able to climb. It stays plain, with no polite ending.