Agencies are supposed to carry out legislation, as modified by executive policy and court orders. They certainly can be guided by their own expertise but they are not supposed to set the goals involved.
What happens when the legislators, executive, and courts are bad? Then they will instruct the administrative state to do bad things. *The whole point* of that state is to then do the bad things.