The space between copper planes can act as waveguides for RF frequencies. It makes trace impedance changes and signal losses.
To cut such waveguide effect, put vias, which is essentially a copper cylinder.
When the distances between vias are small enough compared to the wavelength, the board is like continuous copper material, instead of waveguide.
Read More: Prototype PCB Assembly