Just to be exact, the flag is not lowered during "Retreat."  It is lowered during the following bugle song "To The Colors."  This ceremony is usually referred to as the Retreat ceremony, but it's two songs.  You stand at attention facing the flag/music during "Retreat" and place your hand over your heart/salute during "To The Colors."