Random forest is a machine learning algorithm. It is an ensemble algorithm composed of decision trees. Ensemble machine learning algorithms use the fact that kind of good models gets really good if a lot of them are used together. They just have to be fully independent of each other.
In ensemble programming we can use the same principle, but for a forest of developers. Everyone in the team does not have to be good at everything. The important thing is that the team has enough psychological safety so that all developers are “independent” and can add to the total result.
This is one way to understand the power of ensemble programming.