People who are experts in their fields typically don't need to make money from selling educational materials. They make enough money in their field of expertise, e.g. by being a researcher or professor. The reason they publish educational materials is typically to improve their public image or become a bit more famous, and they want as many people as possible to have access.
On the other hand, paid courses (think Udemy and stuff like that) are often made by people whose goal is to put in the minimum effort plus some marketing to sell a course. They are not experts in the field, and don't need to be, because marketing is more important. These courses end up being shallow low-quality fluff.