Question: are all web browsers free?
Answer: Browsers are free for users because of the market competition. Having the highest market share is very important for revenue, since they highly depend on users searching with their browser. Take Firefox as an example: Mozilla have a deal with Google who pays them money for having Google as their default search engine.