Most of it is funded either by advertising or by subscription. The "open Internet" sells ads. Library and other databases are purchased from vendors, who are primarily interested in profit for their businesses. Scholarly publishing is caught in a flux of marketing and technological changes. Read more here.