You are making an assumption here they want to freelance or take a consulting position. There are plenty of web development positions available on teams or at agencies that find the customers for you. There is no need for someone just learning web development to go straight into consulting work. In fact, I'd highly recommend against it. You'll get the most out of working with other developers and improving your skills before you go out on your own (if you ever go out on your own).
Edit: To summarize, not every web developer needs to be an entrepreneur.