In the figures it seems to me are showing some simulations, not real device responses. I do not know any real amplifiers having a flat gain from zero to ...9 GHz.
Your first VGA is not an amplifier but a bare attenuator. Its response can be OK. The second 30-dB amplifier can have the overall frequency response affected by input or output mismatch as shown.
If your VGA1 (0-60 dB attenuator) is a PIN or similar device, then it may be mismatched at the top as well as at the bottom.
A real amplifier with 30 dB gain and 9 GHz BW will also generate a good deal of noise which is not shown. The noise output power can be estimated from Pn = kTB or Pn = -174 + NF + G +10 log BW
where BW is in Hz.
For a good amplifier, NF is say 6 dB, G=30 dB and 10 log BW is ~ 100 dB for 9 GHz. Then, Pn = -174+ 6 +30 +100= -38 dBm, quite a lot.