These are the moments that young players need to show their talent, they need playing time so they can more easily integrate with the core players and understand the philosophy of the coach. Young players are the future of the club, they need to explore their potential so they can enter the main team.
Their presence is very much needed because Munich's schedule is very tight this season, at any time Kompany can make a small rotation or give them confidence in them towards the end of the 10 minutes of the match so that they can hone their mentality and abilities.
Kompany did not make many rotations in the match and he still used the core players even though they were only facing a friendly match. Some young players are indeed an important part of a team because they will become the main players after finding the best game rhythm according to the coach's wishes and young players do need to be given time to play so they can get used to facing big matches. 10 minutes before the end of the match gives them time to play, but the coach must also pay attention to many things to make rotations because sometimes the last 10 minutes can give bad results if they are wrong in making rotations in certain matches.
I also do not understand why Kompany has to play optimally by playing their core players just to face a friendly match when it is too risky because in a friendly match like this injuries cannot be avoided and Bayern Munich has to pay dearly for it, Kompany must rotate at times like this so that their core players do not get tired because they have to face many matches and honing the skills of reserve players is very important because at times they are really needed when their core players cannot play the match.