VoIP is a telephony service that works over your internet connection, not traditional analogue lines.
With hosted VoIP the servers work from data centres, not from within your business. This means that all the phones within your company work together regardless of location.
It also means that you can get rid of any excess analogue or ISDN lines, all you need is an internet connection.