Rescuers moved the apes after their habitats were threatened by intense wildfires over the summer.