Why it is advised to switch off engines of vehicles when waiting at traffic light?

It isn't advised actually, simply because it's that much longer when you see the light turn green to when you can restart your car and put it in gear and get going again. It kills the battery in the car by repeatedly restarting it over and over every time you stop at a light.