To begin with is was to replace incandescent lamps as indicator. But nowadays it is used for myriads of uses from indicator to lamps fixture for your House there are also specialty LEDS like...
The world survived many years without them, but they are very good at giving a fair amount of light for the energy consumed and they do last for a very long time.