This is a pun on the phrase 'work for peanuts' which means to work for very little compensation. But it's being used here because elephants famously eat peanuts
Elephants will toil all day , and they work for peanuts .