I think you are asking about airline alliances and not frequent flyer programs. FF is on the consumer end of the airline industry and the alliance is obviously the corporate side.
I think airlines use alliances to spread the costs they incur and to increase their efficiency and destinations.
That is just my basic view on it. I am sure there are theoretical papers written about this topic, you can try to find answers there. If that does not help there is always Wikipedia.