Mathematically, spacetime is a "manifold", which is to say, it appears locally "flat" near each point in the same way that, at small enough scales, a globe appears flat.
Mathematically, spacetime is a "manifold", which is to say, it is a "topological space" that locally resembles Euclidean space near each point. By analogy, at small enough scales, a globe appears flat.