A lamp will light up if there is a potential difference across it.  The current can flow through the middle diode, so the potential in the top horizontal wire is the same as in the bottom horizontal wire, so the potential across lamp 2 and lamp 3 are both zero.  The potential across lamp 1 is just the potential of the battery so it lights up.