Because when they are doing the staring contest they are looking at each other, directly from one end of the chest to the other
O> will be my one eye of each pirate
O>..........chest................<O
When you say turn around they look directly behind them
<O....................chest...................O>
and now no one is looking at the chest
Before they are at an angle to the chest so they still can watch over it