In Section 3.2 of Convex Optimization by Stephen Boyd and Lieven Vandenberghe, it shows that a convex function could be represented as the supermum of affine functions:

I don't quite understand the difference between variable $x$ and $z$ here.
In my understanding, the original function $g$ should have both $x$ and $z$ as variables, and then each $x$ refers to a function $g(z)$ whose supremum is represented as $f(x)$.
But if my understanding is right, why is the function $g$ here not written as $g(x,z)$ instead of $g(x)$? Thanks.