Federal refers to the national government. The voting age is determined by the federal government while the driving age is decided on a state by state basis.
Before the Constitution was ratified, the United States was a loose confederation of states, with no real federal government. The Constitution created a stronger federal government but to this day, there is a conflict between those who want power to go to the states and those who support federal control. States don't seem to mind federal subsidies though.