Well, back when the settlers came to Australia, the majority of them were Christian and with them, they brought the English common law, which were based on Christian ideals. That could be why that law exists. Though, why they haven't changed it, to adapt to newer times, I'm not sure.
^ This.