It is not entirely accurate to say egg-laying mammals are found only in Australia. While Australia is home to most of them, monotremes also live in New Guinea and Tasmania.
Monotremes are the most ancient lineage of mammals, diverging from other mammals around 166 million years ago. Fossil evidence suggests they were once more widespread, including in North and South America. Over time, continental drift isolated the Australian landmass, allowing monotremes to evolve and thrive with less competition from other mammals.
These unique creatures developed adaptations such as egg-laying and, in most species, a pouch for raising young. Their survival in Australia and nearby regions is largely a story of geographic isolation rather than any special ability of the continent itself.