Borussia Dortmund is known to be selling their best players in almost all the summer transfer windows and that is why Bayern Munich will continue to dominate the German Bundesliga for more seasons to come.
Jadon Sancho was sold last two summer before Erling Haaland was sold to Manchester City last summer and now Jude Bellingham has left for Real Madrid. I think the club's transfer strategy isn't concerned by the success of the team rather they're more concerned by how much they make as gains when they sell these players. They might also be lucky raise another great player before the end of next season and still sell him at the end of the season
If they were able to retain the good players, Bayern could not have been dominating the league for years. It takes a consistent team to have great success, it's only financially good to sell a player who can make money without using it to another team.
On the one hand, they are doing something quite logical, they always sell their players when they are at their most valuable and make a lot of money. But their chances of becoming champions are dwindling

I think there is something worse for them. Some of these successful players have transferred directly to Bayern Munich in the past years. Of course, I do not judge the players. When the players see that Bayern Munich wants to transfer them, they immediately want to be transferred to the champion club. I think this is very natural. However, Borussia Dortmund seems to be in a bad cycle in this regard. Lewandowski, Hummels and Götze were some of the best-known examples of this.
So, I don't think they want to sell football players just to make money. They are not the right address for football players who want to achieve success by winning the championship. For this reason, they have a hard time keeping the good players they have in their squads.