Aussie explanation needed

WEDNESDAY, APRIL 22, 2015
Aussie explanation needed

According to BBC Online on Monday, "Australia and Iran have agreed to share intelligence about Australians fighting with militant groups in Iraq ... Australia would have access to information gathered by Iranian operatives in Iraq."

Australia can formally recognise the government of Iran when needed, but it has a problem accepting Thailand’s government.
Could some Aussie genius or rocket scientist please explain all of that to us?
Guy Baker