Is there some kind of rule or law that it has to be an oak barrel, or just tradition? Does oak have some kind of physical properties that tends to make it the wood of choice?

Why not maple, cherry, cedar, even pine? I know it affects the flavor and color, but would it be too terrible to try?