Sometimes political interests, as opposed to the official attitude of respecting the independence of the position, lead the government to fill the position of Attorney General with a person who is considered to be less independent and more amenable to special pleading from the government.
The most famous example was a scandal in the mid-1990s, relating to the appointment of Roni Bar-On as legal adviser to the government.