> but the availability of open source also reduces the possibility to build and sell own libraries
Perhaps, but so do other paid libraries, so in a way, you're competing all the same but you actually have to be good instead of just existing at a lower price point.
But open source libraries have a price point of zero - competing on a lower price would be negative. Other paid libs at least have a price that sustains the developer and/or company behind it.