the y and x subscripts tell you with what dimension you are doing it with respect to since you take them separately for projectile motion with x being horizontal and y being vertical. Projectile motion assumes the only acceleration is due to gravity which solely acts in the vertical direction...