Pearson once had a team called the "O'Reilly Killers" whose aim was to compete in highly lucrative fields and well send a hammer blow to O'Reilly's diminishing revenue per title (dropping since the dotcom bubble). It may have been more of a mindset that an actual ambition to send O'Reilly out of business but that was the team's name (the name was retired when they joined forced according to Tim).
In regard to the birth of SafariBooks, apparently the story goes that the CEO of Packt chatted to Tim O'Reilly about future of books and ebooks and suggested that an online library would be something developers would use in the future. Tim offered to split the cost and risk having thought about the product and how to bring it into life (it represented a significant risk if no one brought the service as development cos was high) but the CEO of Packt didn't like the cost and risk so Tim, forced to find other partners went to his arch-nemesis Pearson.
Pearson having made tons of money out of subscriptions to libraries and institutions instantly saw the value of the proposition and took the risk (at worst, they would be down what they could afford and O'Reilly would be at risk) and that is how apparently the two enemies became uneasy allies.
O'Reilly have not seen their revenue per title average return to pre dotcom burst levels (currently around 80-100K per book on average in revenue) but they have seen great returns on SafariBooks and they get to monetize rival content so this move signals to me that they see it as their future beyond "just" content development.
-- if you are wondering what Packt did, they made their own cheaper version of SafariBooks on their own which only featured their own books called PacktLib.
-- sources: Worked in tech publishing for a few years, had a few chats and was told of some chats as well as http://radar.oreilly.com/2013/09/how-i-failed.html which is a great read from an interesting man