You have to take into account not just the annual sequestration of carbon dioxide by rainforests, but also the carbon already stored within them that is released when they decay or burn. A lot of the land being deforested is used to make way for livestock which adds insult to injury. Moreover, the deforested land accelerates the greenhouse effect by absorbing more energy from the sun.