Magnifico is not even in the wrong in this
Asha goes for a job interview to be his apprentice and he really likes her. Then she gets pissy because he says he won't grant all the wishes and only the ones that are good for Rosas.
Then the King says he won't grant her grandpa's wish because it's too vague and might lead to conflict. Again, the responsibility of a leader. His wish is to 'inspire the next generation', which the king fears might be interpreted as inciting a coup, which ironically he's proven right about. Instead he grants the wish of some lady who wants to make dresses for all the children of the kingdom. Asha gets even more pissy. What a lovable protagonist.
Then Asha wishes vaguely for "something more." Star comes down, and the king's concerned this ball of light dropping from the sky might pose a threat to his people (a logical assumption). He goes through his library for an answer, saying the whole time that he wants to protect the kingdom. Still doing absolutely nothing immoral.
Then Asha and her friends band together with the queen to overthrow him because he uses a spellbook to try and restore order to the kingdom. All the kingdom's people, despite being content, wish really hard for him to be taken away. He's banished into a magic mirror which his wife has the ability to release him from, but she chooses not to and locks it in a basement for eternity.