Joselu has made the decision to leave Real Madrid and join Al-Gharafa in the Qatari league, he knows he will not be the first choice at Real Madrid and moving to another club even though it is in a smaller league than Laliga could give him more games and opportunities get a bigger income, but I don't know for sure how much he will get at the new club.
Carlo Ancelotti reportedly wants to keep him because as a reserve striker, he can be said to play a very good role, appearing several times to make Real Madrid's as a winner. With his move, Real Madrid will look for another reserve striker who is of course cheap but can perform well.
https://twitter.com/FabrizioRomano/status/1805213101131796541Joselu probably knew that he wouldn't have much time to play for the main team even if he stayed at Real Madrid. It looks like he made the right choice to leave from madrid. Gharafa isn't a big or well-known team, but he can make a good living by playing there.
Because he thinks it will be hard to beat Mbappe for a starting line up at Real Madrid, he has decided to leave the club.
Based on what I know, Real Madrid can make him a new offer or even buy him permanently. In the end, Joselu is willing to enjoy his career as a professional football player by playing regularly because he is almost done with his football career, and moving to the gharafa is a good choice.
Finally, I respect his choice to leave Madrid; because it was the right one given Joselu's age.