Tensions had been growing between Salesforce Inc.’s co-Chief Executives Marc Benioff and Bret Taylor over their responsibilities and how the business was run for months before the business-software provider said last week that Taylor would exit the role, people familiar with the executives said.