One of the most critical components of WiFi is a clear line of sight. The 2.4GHzz and 5GHz bands that WiFi works on is not very good at penetrating walls, trees and other objects. Elevation is also very important since a WiFi signal is not a simple straight shot, but more of a globe. 

The following video will explain more: