What does capitalism has to do with unions? It is actually goes against basic capitalism to have a 2 party system where the employee and the employer negotiates the circumstances of work.
unions are an expression of capitalism. Businesses will often form partnerships/merge to better their market position/profitability/etc.. Laborers (when viewed as a business-person selling a product: their labor) should do the same to promote their own position/profitability/etc.