Bagheera's motivations for saving the man-cub are two-fold. On one paw, he sympathizes with Mowgli because he, too, was born in a zoo. Allegedly. His story about breaking "the silly lock with one blow" (1.82) of his paw seems a little too ridiculous to believe. So while we think he was raised in a zoo, we doubt his escape was that dramatic.