A new study is unearthing how and why peatlands are producing carbon dioxide and methane.