Foundation, a framework used in Swift projects, is going open source

The Swift programming language was developed by Apple and is popular in developing iOS apps.

Why do large companies open source these core technologies? What do the internal discussions look like?