Roku captures subscription and advertising revenue, and also resells/licenses ACR (Automatic Content Recognition) data, aka viewing data. Users can turn this off if needed.
ACR Service Policy: https://docs.roku.com/published/acrservicepolicy/en/us
Roku is not alone in doing this, of course. Every major TV manufacturer in the US does this.