Roku sticks communicate via Wifi-Direct to their remote controls, a type of RF. Once the Roku Stick is paired to Roku remote, the signal can go through walls. It needs to because Sticks are usually behind the TV, no line of sight, so no IR will work. It's not magic, just because you don't understand it it's not a conspiracy.
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.