Here's the problem, kids need attention. They need unconditional love and to know unconditional love. Some of you have pointed out the importance of parenting in this situation and it's pretty much one of the two main issues.
When a child feels they don't have enough attention, guess what? They're going to try and seek ways how to get attention - they're going to look at who and how they're getting attention. When they see the girl/boy they like, their parents, etc. give a lot of attention to rappers and influencers, guess who they'll try to be like?
Another thing is when kids get denied attention, what do kids do? Show out. Be rebellious. Act like the bad kid.
Combine all that together and you have a clout-chasing/thirsty, batshyt crazy, chip on their shoulder undeveloped mind who constantly needs validation. Boring stuff like "school" that doesn't get much attention is basically the last priority. Then the fact that they do poorly in school only grows that chip on their shoulder.
I've seen this time and time again. It's a cycle - the effect gives energy to the cause, which creates the effect which gives energy to the cause, etc.
Kids who have and know unconditional love don't got these problems. They got internal validation and don't need it externally. They know they're loved.
Part of the problem is full-time/overtime work which stacked on top of the problem that many parents are too busy giving attention to a celebrity lifestyle that they never attained - they don't give their kids attention and the above cycle starts.
Edit: This is also why a country like China is outlawing Western culture more and more when it comes to entertainment. Although their culture is heavy on conditional love/education attainment, when those kids look to see who's getting attention they'll see the brightest thinkers on TV and social media (remember TikTok's algorithm in China). That means that instead of somebody flashing guns against their community, they're aspiring to be the scientist. So when those kids look at ways how to get attention, they see people working on academics getting the love. I think I saw recently some famous scientist died and his funeral was all over their TV.