Lucy Letby could have accessed patient notes and reports on baby deaths after she was taken off a neonatal unit over suspicions she was deliberately harming infants, a public inquiry has heard.