The set of geometric constraints contains both a horizontal and vertical constraint. You can apply to lines to make them horizontal or vertical relative to the sketch X or Y orientation.
Notice that the lower segment becomes horizontal while remaining coincident to the origin.