This is caused by an eco setting. The TV will be set to turn off after 4 hours of inactivity.
In order to prevent this from happening, disable the "auto power off" feature.
This can be done by pressing the menu button on the remote and choosing System followed by Eco Solutions. Auto power off can be set to either on or off from here.