Question: what is the slope of a horizontal and vertical line?
Answer: The number "zero" exists, so horizontal lines do indeed have a slope. But vertical lines don't have any slope; "slope" simply doesn't have any meaning for vertical lines.