I think Sandy's answer is the most logical one. However, if you have a TV that uses a remote, then the answer might lie therein. Remotes send a signal, usually an infrared (IR) signal, that controls the TV. It works on what is called a "line of sight" signal. In other words, you have to point the remote at the TV's IR receptor.
Some of the newer remotes will use both an IR and a Bluetooth option. The default with these is usually the IR (infrared), and you have to program it to use the Bluetooth option. With the Bluetooth option, you don't have to have a direct line of sight. You can just point it in the general direction or even at the ceiling, etc. If the remote is within range and is connected to the TV's Bluetooth connection, then the remote will operate the TV without having to do one of those "hold the remote out to the right, elevate it, and point down over the dog" moves.
That all being said, it is possible that a remote signal from a source outside your living room (or wherever the TV is) may have accidentally and freakishly triggered it. That could be something as odd as someone using a key fob to start their car or a computer nearby hooking up to a Bluetooth speaker, etc. If it continues to happen, then that might be the problem. Your TV will turn on every time your neighbor says, "Alexa, open the garage door." (or whatever).
The last (and another logical) possibility is that there is a "short" in the TV or in the remote that "sends/receives" a signal from the defective device (on the remote) or the circuit (on the TV.)
You candy a different remote and program it to your TV. If your TV has a Bluetooth option, then go fo it and program the remote for Bluetooth to your TV. That way you won't have to do the "air gymnastics" to operate the TV.