Usually, the person or party that creates the software retains its ownership, ie., the software developer. However, they license their ownership and usage rights to some extent to their client through the software development agreement.