Maybe you don't want another company to be able to look at your IP. Or maybe you want or need to hold yourself to a higher security standard then hosted alternatives. If your code is hosted with a third party out on the Internet, your own service now is only as secure as that third parties.