The sky does not skip over the green range of frequencies. The sky is green. Remove the scattered light from the Sun and the Moon and even the starlight, if you so wish, and you'll be left with something called airglow (check out the link, it's awesome, great pics, and nice explanation).
Because the link does such a good job explaining airglow, I'll skip the nitty gritty.
So you might be thinking, "Jim, you half-insane ceiling fan, everybody knows that the night sky is black!" Well, you're only half right. The night sky isn't black. The link above explains the science of it, but if that's not good enough, try to remember back to a time when you might have been out in the countryside. No bright city lights, just the night sky and trees. Now when you look at the horizon, can you see the trees? Yes, they're black silhouettes against the night sky. But how could you see black against black? The night sky isn't black. It's green thanks to airglow (or, if you're near a city, orange thanks to light pollution).
Stop, it's picture time. Here's an above the atmosphere view of the night sky from Wikipedia:
And one from the link I posted, just in case you didn't check it out:
See, don't be worried about green. The sky gets around to being green all the time.
In microwave ovens what matters is how much energy the radiation carries and how that energy is absorbed by the food. Visible light and IR are rapidly absorbed by most foods, so they would only heat the outer layer of the food. You'd get food with the outside carbonised and the inside raw.
Microwaves are far less strongly absorbed by foods, so they penetrate deep into the food and can heat the interior. Even so large objects won't be heated throughout, which is one reason why microwave cooking instructions frequently advise a multi stage process of heating, letting the food stand then heating a final time.
Microwave ovens often include IR heating as well as the microwave heating. This is done so you get food with a browned exterior and heated throughout.
The answers to Why do microwave ovens use radiation with such long wavelength? give a nice discussion of why the exact wavelength used was chosen. The frequencies commonly used in microwave ovens are 2.45 GHz (12 cm) for home ovens and 915 MHz (38 cm) for industrial overs. Much higher frequencies are not used due to the cost of the magnetron, while much lower frequencies would not work because the wavelengths would be too big to allow a half wavelength to fit in the oven.
Finally, you say:
Why do we use microwaves in microwave oven when infrared and visible light are much hotter and how do microwaves cook food when they are cooler than visible light and others.
But this is a slight misunderstanding. The wavelength of light emitted is indeed related to the temperature of the source, but light itself doesn't really have a temperature in the sense that matter does. Light transfers energy, and if this energy is absorbed it will heat the food. However the amount of heating is just related to the intensity of the EM radiation and the abosrption cross section. The wavelength makes a difference only insofar as it affects the absorption cross section.
Best Answer
The problem is that the shorter wavelengths get absorbed by anything in the middle, but micro and radiowaves (depending on the freqency), are either transparent or bounce back from the upper athmosphere. The highest frequencies (such as x rays) can pass trough objects, but they are harmful to us.