These are solar garden stakes with a thin, bendy iron wire running up to a weighted bulb at the top. Push each stake into soil by a path, a patio or a flower bed, and the light sits up high where it can catch the breeze. The solar panel does the work during the day and the light comes on by itself after dark, so there is nothing to plug in or wire up.
The swaying is the main reason people pick these. When the wind blows the bulb moves back and forth, and the heavier base helps it keep swinging rather than stopping dead. They suit anyone who wants a bit of movement in the garden without fiddling with cords, whether you are dressing up a patio for summer evenings or lining a walkway.