Whoa is just older. https://www.dictionary.com/e/whoa-or-woah/
Dictionaries are descriptive of actual use, not prescriptive rulings. Both spellings are completely valid, the pedantry is incorrect.