In projectile motion the x and y components are considered independently. Therefore even though acceleration due to the force of gravity is present vertically, theoretically if this is the only force then the horizontal velocity would not change and is constant.