Cal-Maine Foods has booked a 39% drop in second-quarter earnings, as revenue growth failed to offset higher costs.