Flat earth was right enough to get someone from village a to b it just wasn't good enough to get us to the end of the world or into space.
Also it mostly a wrong idea that flat earth was a popular theory. https://en.wikipedia.org/wiki/Myth_of_the_flat_Earth