a) for the developer to scratch an itch. To express something that is difficult or impossible with the community/plan of another project.
b) so we have options.
GitLab = BSD. Gogs = MIT. Gitea = MIT. Phabricator = Apache. Savane = GPL
So licenses are all over the place anyway. Only Savane is GPL and IIRC it kinda sucks.
The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!