A great number of shows and series are available "freely" to subscribers of services like Amazon Prime, etc.
Among these shows, many seem to have been produced exclusively for this platform, and even to have been produced very recently. I have the impression that producing this amount of high quality content must cost incredible amounts of money, that I do not feel the fees demanded by the service can support. Which parts am I missing that can explain the economic existence of such a service?