I think it depends on the situation. In some specific niches, there is an obvious cost savings. Tomcat, for example, pretty much decimated the old, highly expensive J2EE app server market.
Which is why Oracle started buying up every CRM or CMS system it could get it's hands on and makes them drop support for anything that isn't Oracle DB or MS-SQL. Then it cripples the MS-SQL support to the point that you willingly switch to Oracle DB.