When source code is published publicly. Volunteer contributors participate in development. Rooted in the Free Software Foundation philosophy:
Code should be freely available to examine and modify.
Community involvement reduces cost and speeds development. Business model of open source software is selling support instead of product.
Linux, Java, Apache, MySQL are famous examples.