the tiny water molecules exert forces on the box in all direction. since the bottom of the box is deeper in the water than the top of the box, the bottom of the box will experience a larger upwards force from the bottom than it will a downwards for from the top. this means overall the box will be pushed upwards