Well here's to better state what I said.
Just for clarification, the law does NOT require a hazmat fee.
The law requires certain licenses and documentation if the freight is hazardous. So the carriers and shippers are charging the fee to cover their license and paperwork costs, but the law does not charge a fee nor require the shipper/carrier to charge the fee.