The acidity of benzoic acid $(\ce{C6H5-COOH})$ and its substituted derivatives, $\ce{R-C6H4-COOH}$ $(e.g., \ \ce{4-NO2-C6H4-COOH})$ have been studied extensively using the Hammett Equation. Similarly, acetic acid $(\ce{CH3-COOH})$ and its substituted derivatives, $\ce{R-CH2-COOH}$ $(e.g., \ \ce{Cl-CH2-COOH})$ have been studied extensively as well using similar Hammett Equation. You may read some brief discussion of Hammett Equation here.
Actually, you are comparing benzoic acid and a $\ce{R-CH2-COOH}$ where $\ce{R = Ph}$. Their is no relationship between these two acids except for both having $\ce{Ph}$ functionality. Benzoic acid has $\ce{Ph}$ directly connected to $\ce{COOH}$ group while acetic acid derivative has it connected through $\ce{-CH2\!-}$ group. Because of that, acidity of $\ce{Ph-CH2-COOH}$ is depend solely on inductive effect. It isworth noting that I cannot find any comparative studies of these two type of carboxylic aid in one single research.
The $\mathrm{p}K_\mathrm{a}$ of benzoic acid is $4.20$ $(K_\mathrm{a} = 6.3 \times 10^{-5})$ while the $\mathrm{p}K_\mathrm{a}$ of acetic acid is $4.75$ $(K_\mathrm{a} = 1.77 \times 10^{-5})$. Thus, benzoic acid is about 3.6 times acidic than acetic acid. That is because when you consider $\ce{R-COOH}$ acid, it is more acidic if $\ce{R}$ group is electron withdrawing group (EWG) such as $\ce{Ph}$ group, compared to $\ce{R}$ group being electron donating group such as $\ce{CH3}$ group (EDG) like in the case of acetic acid.
Now, let's increase the electron withdrawing ability of $\ce{R-CH2-COOH}$ acid compared to acetic acid (where $\ce{R = H}$): The $\mathrm{p}K_\mathrm{a}$ value of 2-chloroacetic acid (where $\ce{R = Cl}$) is $2.87$ $(K_\mathrm{a} = 1.36 \times 10^{-3})$, which is about 76.8 times acidic than acetic acid. Thus, we can conclude that $\ce{ClCH2}$ group has larger inductive effect than that of $\ce{Ph}$ group. Thus, if we change $\ce{Cl}$ in $\ce{ClCH2}$ group to $\ce{Ph}$ group, then resulting carboxylic acid should be less acidic than that of 2-chloroacetic acid.
As given in OP's question, this carboxylic acid, 2-phenylacetic acid $(\ce{Ph-CH2-COOH})$ has a $\mathrm{p}K_\mathrm{a}$ value of $4.31$. It is more acidic than acetic acid, but not quite acidic as benzoic acid because of the extra $\ce{CH2}$ group. Remember, inductive effect is weaken by additional $\ce{C-C}$ bonds (c.f., ortho-, meta- and para-inductive effects).
Source of $\mathrm{p}K_\mathrm{a}$ values