Apple sponsored much of the original work on MacPorts, but these days it's run as an independent project of which a handful of maintainers are still from Apple.
The first patches for Apple silicon came from Apple engineers, FWIW.
Apple's a large company, and like many large companies different people use different things ;) Since teams are largely autonomous with regards for tooling, I am sure that the choice of Homebrew or MacPorts for dependency management comes down to the choice of one engineer from the early stages of a project. For teams that use neither themselves developers are free to choose either for their machines. I would assume that new hires mostly pick Homebrew to use when given the choice.
The first patches for Apple silicon came from Apple engineers, FWIW.