The arteries warm the veins. Because the veins also cool the arteries, the bird's feet are closer to environmental temperature and thus don't lose as much heat as they would if they were at body temperature. And by standing on one leg, a bird reduces by half the amount of heat lost through unfeathered limbs.