The very basic answer is to offset the cost of operating and maintaining the attraction. The advantage to the sponsor is self explanitory, they get their name in front of several guests who enter and exit the attraction each day. The advantage to Disney is they inject less of their capital to operate and maintain the attraction. In fact, you could argue the sponsored attraction is a better experience because sponsorship funds allow Disney to add other elements.