Because when the flaps are in the landing position there is heaps of drag and air brake effect.
When flaps retract they go through a setting that actaully increases lift, you dont want that on landing.
and any way, give something for the pilots to do
Also, why would you want auto retract flaps