y=4 is the equation of a line that has slope = 0 and goes through the given point (-1,4)
If slope is zero, then the line is of the form y= a constant, with no x term. You could think of it as y=0(x) + a constant, where the slope = the coefficient of the x term.
Just set y equal to the y coordinate of the given point (-1,4) the y coordinate is 4, so y=4 is the line with slope zero through the point.