The sky always has water in some form vapor, droplets, or ice. Rainbows happen when sunlight and those droplets line up perfectly.