Fact checking as a separate job is more for journalism than books. But editors have fact checking as part of their jobs. (It is not copy-editing, which is a different job.)

Many nonfiction authors will hire a fact checker separately. They don't want to look like they missed something. Errors still happen, of course.