If a fictional world doesn't fully follow the known laws of physics, I don't see how that automatically means physics no longer describes the world. Physics isn't why we have gravity, physics is how we describe how we think gravity works. But we aren't really sure that we're right because we can't figure out the relationship between the macro and quantum level effects of gravity. Pretty obvious that something modifies our observation of physics in many forms of fiction. Harry Potter shouldn't be able to fly around on a broom but we assume the rest of the world still works like ours does unless told otherwise. I've always assumed the same for DnD worlds.
There is absolutely no reason to think that
universal gravitation obtains in the worlds of D&D. Perhaps planets orbit the sun, but in some D&D worlds the sun is as it is in JRRT's work, and orbits the earth. In some D&D worlds those orbits are probably circular rather than elliptical. In D&D worlds, combustion is connected to an element of
fire, perhaps related also to an element of
air - there is no reason to think that the oxygen theory of combustion is true in those worlds.
To put it another way: the common sense description of how gravity works near the surface of the earth is "unsupported objects fall to earth". In D&D worlds,
that common-sense description is true.
But
universal gravitation is not, primarily, an account of why unsupported objects fall to earth. It is primarily an account of forces and motion that reconciles and integrates an understanding of
falling with an understanding of
celestial motion. And there is no reason at all, in a D&D world, to think that celestial motion behaves as it does in reality. And there is good reason to suspect it does not.
Similarly, in D&D worlds it is often the case that space is nothing like space in reality (but, eg, an "astral plane" or "astral sea"); that Mars is a planet with a breathable atmosphere (see eg the incorporation of Barsoom into early D&D); that it is possible to fly, using wings, to the moon (see Gygax's account of this in his PHB), etc.