Ahaziah did evil things in the Lord’s sight. That is what Ahab’s family did. Ahab’s family gave advice to Ahaziah after Ahaziah’s father died. They gave Ahaziah bad advice. That bad advice led to his death.
“If a king is going to fight against another king, first he will sit down and plan. If the king has only 10,000 men, he will plan to see if he is able to defeat the other king that has 20,000 men.