The name originates from steam-powered vehicles, where the firewall separated the driver from the fire heating the boiler.
[1]: https://en.wikipedia.org/wiki/Firewall_(engine)
https://www.etymonline.com/word/dashboard