I'll make a guess that matter is like bubbles in spacetime. For some reason the bubbles remain stable and due to cleverness of equations governing spacetime, it allows to form stable complex structures around those bubbles. This is even a verifyable hypothesis: check what happens with GR equations in topologies with tiny spherical holes.