I'm not sure if this is a complete explanation, but the role attribute in the already abandoned XHTML2 had much wider use than just the WAI-ARIA roles that are allowed for the role attribute in HTML5.
There was some suggestion ~ 2006/2007 to avoid confusion, the attribute in HTML5 should be called wairole , and it may be that Dojo is simply trying to cover both bases.
See http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2006-August/007150.html for one place where the name wairole was suggested.
source share