Does the curvature of spacetime theory assume gravity?
I greatly sympathize with your question. It is indeed a very misleading analogy given in popular accounts. I assure you that curvature or in general, general relativity (GR) describe gravity, they don't assume it. As you appear to be uninitiated I shall try to give you some basic hints about how gravity is described by GR.
In the absence of matter/energy the spacetime (space and time according to the relativity theories are so intimately related with each other it makes more sense to combine them in a 4 dimensional object called space-time) is flat like a table top. This resembles closely with (not completely) Euclidean geometry of plane surfaces. We call this spacetime, Minkowski space. In this space the shortest distance between any two points are straight lines.
However as soon as there is some matter/energy the geometry of the surrounding spacetime is affected. It no longer remains Minkowski space, it becomes a (pseudo) Riemannian manifold. By this I mean the geometry is no longer like geometries of a plane surface but rather like geometries of a curved surface. In this curved spacetime the shortest distance between any two points are not straight lines in general, rather they are curved lines. It is not very hard to understand. Our Earth is a curved surface and the shortest distance between any two points are great circles rather than straight lines. Similarly the shortest distance between any two points in the 4 dimensional spacetime are curved lines. An object like sun makes the geometry of spacetime curved in such a way that the shortest distance between any two points are curved. This is called a geodesic. A particle follows this curved geometry by moving along this geodesic. Einstein's equations are mathematical descriptions of the relation of the geometry to the matter/energy.
This is how gravity is described in general relativity.
Those sheets with dips having stars at their centers illustrate gravity by illustrating that freely falling objects move along geodesics, and that geodesics are curved by the dips in a way that looks as if freely falling objects were attracted by the stars. (Needless to say, the 2-dimensional sheets remain poor substitutes for the real McCoy, which is a (3+1)-dimensional pseudo-Riemannian manifold.)
A better analogy for curvature is to imagine ants walking on bowling ball in space. They start out at the same point exchange information in some ant fashion, then take off in different directions and even if they try to walk as straight as possible on the surface, they end up converging towards that point opposite where they started (And if you were at the north pole and started flying as straight as possible at constant altitude, you head to the south pole, no matter which direction you headed out).
Those kinds of things are what the curvature is supposed to do, to create paths that are the natural ones that converge, and that converge in a way that didn't depend on say if you were small and light or if you were more massive, just the path you take.
That said there is an important further point, which is that curvature exists even far from sources because curvature begets curvature. For instance, mass, energy, momentum, stress, and pressure are sources of curvature, but they are not the only things that create curvature, curvature itself can create further and additional curvature. A gravitational wave can propagate or even spread in a vacuum of empty space devoid of all mass, energy, momentum, stress, and pressure.
The region outside a symmetric nonrotating static star is curved, even the parts far from any mass or energy or momentum or stress or pressure. The space remains curved because the existing curvature is exactly shaped so as to persist (or otherwise cause future curvature exactly like itself).
So curvature allows and sometimes requires more and/or future curvature, just as a travelling electromagnetic wave allows and/or even requires there be more electromagnetic waves elsewhere and/or later. The vacuum allows curvature far from gravitational sources just as it allows electromagnetic waves far from electromagnetic sources. What electromagnetic sources allow is for electromagnetic fields to behave differently (namely to gain or lose energy as well as move in different ways and gain and lose momentum and stress). Similarly what gravitational sources do is allow curvature to react differently to itself than it otherwise would.
Imagine a flat region of space shaped like a ball, then imagine a funnel type curved space where two regions of surface area are farther apart than they would be if flat (like a higher dimensional version of a funnel and on a funnel surface two circles of a particular circumference are farther away as measured along the funnel then if two similarly sized circles were in a flat sheet). On its own, spacetime doesn't allow itself to connect those two kinds of regions together, but that mismatch is exactly the kind or not-lining-up that putting some mass or energy right there on the boundary fixes. So without mass those two regions can't line up, with mass they can. Just like an electromagnetic field can have a kink if there is a charge there.
So your curvature likes to propagate a certain way, and if you want it to deviate from that, you need mass, energy, momentum, stress, and/or pressure. And you'd need the right kind to get it to match up, the kind you want might be available, and might not even exist, so not all kinds of curvature will be allowed. But the point of a source is that it changes the balance between nearby curvature and not that affects future curvature. So there is a kind of balance, and there are things that can warp that a balance. Those things that warp that natural vacuum balance are called gravitational sources.
So that means you want to depict two things, firstly nearby curvature affects nearby curvature, that current curvature determines future curvature, and secondly that gravitational sources allow the curvature to be different than what it would be on its own. The curvature itself is supposed to remind you about paths converging regardless of whether a light thing or a heavy thing sets out on the path. But when you look at the analogy for gravity look for those three features, but don't take any other aspect of the analogy too seriously, the curvature of time is important and not pictured, and the curvature of space is different than as pictured, and things don't move within the space because of an external space or because of an external force and finally the sources themselves make different curvature by allowing pieces that otherwise wouldn't fit to fit together.