The standard torus $\mathbb{S}^1 \times \mathbb{S}^1$ can be given a flat metric if we construct the torus as a quotient space of a rectangle with opposite sides identified and declare the Riemannian metric on the torus as the pullback of the metric on the flat rectangle. By construction this metric is flat.
I want to generalize this construction to construct metrics of constant (sectional) curvature on the $n$-holed torus. So in particular let's start with the $2$-holed torus: as seen here, we can construct it as an octagon with opposite sides identified. So why does the same construction I mentioned for the standard torus not generalize to give a flat metric on the $2$-holed torus? I have heard that if we do such a construction starting out with a hyperbolic octagon instead, we can get a metric of constant negative curvature on the $2$-holed torus. But I fail to see where my construction of the flat metric fails. It has to fail because of Gauss-Bonnet, but I don't see how (I know the angles don't add up in the flat construction - whereas they do add up for a hyperbolic octagon with sides of angle $\frac{\pi}{4}$ - but I'm not seeing why this is crucial).
Furthermore, how can we construct an $n$-holed torus as a quotient space of a polygon? Do we take a $4n$-polygon and identify its sides in some manner (how?)? Do they admit constant negative curvature metrics as well?