the dung balls are full of nitrogen which is very rare, and so they feed this to the female, and the female then can produce more eggs in it, which is evolutionarily very good for both the male and the female.