Possibly because antibiotic resistance is seemingly imminent, and global warming is only a threat over a much longer timeframe. I can't say definitively whether this accurately reflects reality, but intuitively it makes sense for people to feel this way.