Why is there no gravity (in space)?

Actually, there is gravity in space. Satellites revolve about planets, planets revolve about stars, stars revolve
about other stars and the galactic center, etc, all due to the gravitational attraction between the celestial bodies.
However, the gravitational attraction decreases in proportion to the inverse of the distance between two bodies,
and is proportional to the masses. Astronauts in space are far enough away that the effect of gravity is
insignificant, but it is still measureable.