Oxygen is critical to the composting process, that's why turning the pile is essential to maintain aeration channels. Oxygen generally enters from the sides of the pile and exits from the top/center. If you cut off the oxygen supply it will go anaerobic, which will smell horrible. Similarly, having water accumulate in the bottom will have the same effect, causing anaerobic conditions.