As shown in laboratory research by Bartal and colleagues (2011), even rats will work to free a trapped cage mate without prior learning or obvious reward.
[Bartal et al. (2011)]