Lleyton Hewitt retired from tennis after he lost to David Ferrer at the Australian Open.