ELI5 Why some LED bulbs need adapter and others don’t ?

r/

I see in my house ( that I recently bought ) corridor there is a 3 led light system that has an adapter ( I think AC to DC ). But the LED bulb in the living room is just connetced directly to socket via power lines. Can someone explain why some needs adapter and some doesn’t. And is it really necessary to have that adapter ?