As above, so the lights can be clearly seen even in very bright sunshine but also to stop the lights shining into nearby householders' bedroom windows.
...and sometimes they have really long hoods (the proper name for the 'tubes'), to stop drivers on other parts of the junction seeing the light and thinking it refers to them.