According to Marko, DeVries was fired because Daniel was insanely fast during a test session. In a few laps, Daniel was so fast, he would have put that Red Bull on the front row of the grid (and thus doing a better job then Perez).
Now that is nothing special when driving such a rocketship like a Red Bull, but it impressed Marko enough to get rid of DeVries, considering that DeVries is 28 years old already.
Daniel has demonstrated his talent in the past many times, by beating Max and Vettel in the same car. So if Daniel can back to his old prime, I can see him being promoted to Red Bull in 2025 to replace Perez.
But I suspect he will have some "startup" problems as he has very little experience with these 2023 cars.