A bullet does in fact travel in space. Since there are no forces like gravity acting upon it, it will zoom indefinitely throughout space at the same speed and direction it was fired at until it hits something, or until the gravity of a star or planet attracts it.