Prisms don't "create" rainbows. Rather, they break the light coming in into separate waves of color, so it's taking what already exists and breaking it down into a simpler pattern. Rainbows in weather, are created much by the same method. The light coming into the rain is refracted into a pattern in the sky. Have you been fortunate to see a double, triple. or even quadruple rainbow?