There has been gravity on every ship in the Star Wars universe so far. Whatever artificial gravity there is on the ship would also affect the bombs. Once the bombs are out of the artificial gravity of the ship they would continue to move in the direction they were going, appearing to “fall” through space.