All electromagnetic waves propagate through 3-dimensional space with an intensity that scales as 1/r^2 where r is the distance between source and receiver. This is true regardless of frequency, in the absence of matter. This means that the intensity of the transmitted signal never goes all the way to zero, even as the distance through which it travels goes to infinity.
But because the universe is filled with radio noise of varying frequencies traveling in random directions, there is a background noise floor into which a weak radio wave will eventually disappear and become unreadable. A similar noise floor also exists within the components of the receiver, and therefore the received radio signal must be above this noise floor as well, if it is to survive passage through the receiver's circuitry.
This means that the radio signal must be transmitted with sufficient power to remain far enough above the system noise floor to be unambiguously detected at its intended destination. If we wish to minimize the amount of power required to accomplish this, it becomes necessary to choose a transmitting frequency at which the power content or "height" of the noise floor is minimized. In general, this means going to higher frequencies.
In addition, if we wish to have the radio transmitter and receiver conveniently small in size, the dimensions of the antenna must also be minimized. Since the required size of the antenna for best performance is directly proportional to the wavelength of the radio signal, higher frequencies are favored because they support the use of conveniently small antennas.
The amount of intelligible information that a radio signal must carry per second is limited by the bandwidth which that signal is allowed to occupy at a given transmitting frequency in the radio spectrum. High information rates require broad bandwidth, which reduces the number of transmitters that can populate a given slice of the radio spectrum. The bandwidth required to support a given information rate goes down as the transmitting frequency goes up which means that high frequency signals are used for high bit rate applications.
All of this means that wifi is done at frequencies in the gigahertz range, but this also means that any metal object of similar size to the antenna in the vicinity of the transmitter will itself behave as an antenna, and will reflect, refract, or absorb radio signals of that wavelength, and thereby interfere with the establishment of a useable link between the receiver and the transmitter.
Furthermore, at those extremely high frequencies, incident radio waves experience absorption via dielectric losses in materials like water, which means for example that the water content of materials through which the radio signal must penetrate will affect the strength of the received signal. This is the operating principle of the microwave oven, where the absorption of the radio wave's energy content is used to heat food.
Now it so happens that the ~2.4GHz frequency band used in cell phone and some wifi applications is the same as that used in many microwave ovens and the reason you don't get cooked by your wireless server or your cell phone is that the strength of the wifi signals is many orders of magnitude smaller than that produced by your microwave oven- but you can see that this effect places a practical limit on how much power a wifi system is allowed to use. In this case, better radio link performance would mean moving the link frequency down to a lower frequency, which reduces bandwidth.
And that means playing with link frequencies in the frequency range of ~tens of GHz, where the useability of the frequency is set by how the radio spectrum is allocated and where the common molecular resonances lie. For example, you would want to stay clear of frequencies used by radar sets and those set aside for ham radio operators to play with, lest your video streaming activities be jammed by passing airplanes or the random chatter of radio nerds in your neighborhood.
If you need more detail than this, the specific benefits versus detriments of operation at any specific frequency in the ~GHz band might best be obtained off the ham radio stack exchange.