I've never seen another website do this and it's interesting behavior. To recreate it, open a new tab in Safari and go to mail.google.com. While it's loading switch to another tab and wait. Once Gmail has finished it's ajax loading it fires what I presume to be a javascript event to force it to become the active tab.
Does anyone know what the javascript event is? Is it possible it's not javascript?