$$\begin{cases} \frac{1}{x}z_x+\frac{1}{y}z_y=4\\ z(1,y)=y^2-1.\\ \end{cases}$$
So we started with:
$$\frac{dx}{dt}=\frac{1}{x}\rightarrow x^2(t,s)=2t+f_1(s)$$
$$\frac{dy}{dt}=\frac{1}{y}\rightarrow y^2(t,s)=2t+f_2(s)$$
$$\frac{dz}{dt}=4\rightarrow z(t,s)=4t+f_3(s).$$
From $$z(1,y)=y^2-1$$ we get $$x(0,s)=1,y(0,s)=s,z(0,s)=s^2-1.$$
How did we get $$x(0,s)=1,y(0,s)=s?$$
This is follows by interpreting the initial condition $z(1,y)=y^2-1$ as $$z(x_0(s),y_0(s))=z_0(s).$$ Using $s=y$ as parameter of the underlying curve you get $x_0(s)=1$, $y_0(s)=s$, $z_0(s)=s^2-1$.
In the alternative formulation of the Lagrange equations they read as $$ x\,dx=y\,dy=\frac{dz}4 $$ so that along characteristic curves $y^2-x^2=c_1$ and $z-2x^2=c_2=\phi(c_1)=\phi(y^2-x^2)$ gives the general solution as $$ z(x,y)=2x^2+\phi(y^2-x^2). $$ Directly inserting the initial condition then gives $$ y^2-1=2+\phi(y^2-1)\implies \phi(u)=u-2\implies z(x,y)=x^2+y^2-2. $$