Railroads are not planned with curvature in mind.
When you go up, you don't see curvature.
Round-earth theory requires the suspension of disbelief. It is a belief system, within which most workers don't really need the truth anyway. The system is gigantic enough that most things work even if not understood correctly.