 The exact reason is marked on charts.A sector light is one which shows different colours depending upon the angle of approach.They are commonly used to indicate the safe channel (white) and show red or green if the vessel is out of the safe channel.