If you don't have the required free space on the device and install from a computer with iTunes it uses space on the computer.
~
http://blog.chron.com/techblog/2014/09/i...
Please help me understand, how does downloading IOS 8 on a computer via iTunes save you space apposed to downloading it directly on your phone with wifi?