The most likely explanation for John's problem is: The compost pile contained incorrect amounts of "greens" and "browns".
A good compost pile requires a balanced ratio of "greens" (nitrogen-rich materials) and "browns" (carbon-rich materials). If there is too much of one type and not enough of the other, it can inhibit decomposition, leading to a cold pile and slow microbial activity.