Why does a director have to be resident of Australia?

It is a requirement under Section 201A of the Corporations Act (2001) that all Australian proprietary companies must have at least one director who resides in Australia.  Because of this rule, ASIC will not allow a company to either be registered or owned by only foreign residents.

You can view where the Corporations Act references this requirement here.