The excess of amount of $CO_{2}$ forms a thick ‘blanket’ in the atmosphere which is transparent to sunlight but absorbs infra-red radiation trapping heat near the earth’s surface. In this way, due to $CO_{2}$blanket, the earth’s atmosphere works very much like a green house which causes warming up of the interior. So, carbon dioxide is called green house gas.