An investigation is underway into how a family of three became infected with covid-19 in hotel quarantine in Sydney.