Often antenna concepts can best be understood by comparing them to something more people are familiar with: light. Light is just shorter wavelengths of electromagnetic radiation, after all.
An antenna called "isotropic" is like a pinpoint-sized light bulb: it radiates equally in all directions. The unit "dBi" refers to decibels of gain compared to an isotropic antenna.
Now think of a flashlight. The same amount of power would now be focused into a narrower beam, and thus more light would reach a specific target at the expense of targets outside the beamwidth.
In many cases that is good -- it is why beam antennas can help me receive TV signals from 50 miles away, or a satellite dish can receive signals from a tiny transmitter 22,500 miles above me.
In other cases we may not want such a tightly focused beam, like trying to cover an entire house. Simple vertical antennas are good for this since their radiation pattern is like a donut laid down flat. You will get some signal one floor up and one floor down, but not as much as on the level where the antenna is located.
Every case is a tradeoff. The engineer has to choose more beamwidth or more gain. My 9dBi antennas were picked because I need more gain to get through a couple of brick walls into an outbuilding 50 feet from the router. It works -- the 2.4GHz signal inside that building is -50dB.