Law doesn't come from (or shouldn't come from) unqualified legislators guessing about what the future will be like and what problems will be there. Law comes from when somebody has a grievance against somebody else, and society steps in to resolve it. Could you imagine how bad it would be if Congress got excited about the potential for internet crime in 1985, tried to guess the form of the problems that would arise,…
But it’s not the only legal concept, nor the most dominant or best, and in civil law systems, it’s required that all law be available and readable for free for the public, which means law has to be written into laws, and can’t be defined through court rulings.