Compost is basically a pile of organic matter, and you want it to be damp so that the microbes can do their work.
The more air space, the less likely they are to break down your food. This means that you need to cover the pile with some kind of lid or sheeting to keep out the air. You can add water to help the process along, but if you have a lot of it, you can drown the microbes.