Is this in a particular app? The only Roku setting that could affect it is the "Bandwidth saver" found under Settings->Network. Some apps have their own method to see if someone is still watching with no way to disable it. No provider wants to waste resources streaming to no one (or dogs).
Roku Community Streaming Expert
Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.
I am not a Roku employee.