There is gravity in outer space.
There’s gravity on the ISS, although it’s weaker than on the planet’s surface. The astronauts are basically falling very slowly along with the station, which results in weightlessness.