Cattle ranchers have trimmed their herds in response to drought and low margins, helping push up the cost of another American staple food.