Founders generally don't start companies in vacuums. They are the result of communication with other people on the viability of ideas. They meet a subject matter expert in a field, they get to talking, they come up with an idea. The idea gets floated around to other subject matter experts. If something seems viable then prototypes are made to gauge market fit.