It's not the background metric but the space geometry is assumed Euclidean - in non-Euclidean geometry the ratio of of the circumference of any circle to the diameter of that is not a constant, it depends on such diameter (so you simply cannot define 'pi' in that case)