why does light defy the laws of thermodynamics?
it moves on for ever, it dose infinite work without a constant energy supply. why?
There is no friction in space. There are no forces opposing motion. Therefore, not only light, but any object, can travel indefinitely.
The Second Law of Thermodynamics requires that entropy stay the same or increase. Light travelling without interacting is a process for which entropy is a constant.
Perpetual motion machines generally refer to systems from which we can extract usable work without inputting any energy. In the example of light propagation in vacuum, the light isn't outputting any work while travelling through space.
Hope this helps :)