You're forgetting the reason why viewership numbers exits. They're for advertisers. The only reason you need them is to have advertisers. The reasons they're public is that advertisers don't like trusting the company selling them ad space to also be the one saying how many viewers there are. That's why independent viewer number companies started. Netflix has no advertising so it doesn't need to release numbers.
Youtube and TV both need viewing numbers to survive. Netflix doesn't need that data to be public.