Actually even more important than the pattern of numbers the x and y values increase by, is the fact that in order for it to be a function for each x there must be one and only one y variable.
Here there are 2 x values pointing to different y values, this is why it is.