Because it's a public goods problem. If one country pays, all countries benefit equally, and the country that pays generally spends more than its benefit from that payment. So each country is better off not paying, regardless of what everybody else does, even though we'd all be a lot better off if everybody paid.