Science, as we know it, didn't really get its start until the 16th century. As for the idea of the Earth being flat, the Church took that position because that is what Scripture implied; folks who actually studied and were learned for their period knew the Earth was a sphere from classical times.