Can anyone remember when laws were made by elected officials?
It seems like nowadays some federal agency steps in and declares that they're the governing authority on something, that their decisions are law, and everyone should obey.
That doesn't seem to mesh with what we were taught in school.
Aren't our lawmakers elected?
What you're referring to is known as the Doctrine of Nondelegability.
The SCOTUS has gradually all but destroyed any restrictions on the Congressional delegation of it's regulatory/lawmaking powers.
The rationale was that delegability was necessary in order to produce enough Federal laws & regulations quickly enough to be able to control through laws and regulations all the existing and emerging new areas of the economy and society at large that government felt itself entitled to control. A trend which shows no sign of halting or even slowing as there always seems to be more areas of life government feels entitled to control.
The SCOTUS has never to date denied Congress an act of delegation of it's powers.
This has lead to the creation of the Regulatory State, basically rule by unelected bureaucrats in unaccountable, non-transparent agencies, departments, bureaus, commissions, and the like.
The tossing aside of the Doctrine of Nondelegability is one of the biggest methods through which the Federal government has increased in size, scope, power, cost, intrusiveness, corruptness, oppressiveness, and divisiveness.
The Doctrine of Nondelegability was precisely designed and intended to limit the Congress' ability to be able to expand it's ability to create massive amounts of laws and regulations through delegation of Congress' lawmaking and regulatory powers, and prevent unelected bureaucrats from ruling over citizens without accountability directly to the electorate.