Why do companies do job shadowing before hiring?

I interviewed with a company and I got throw all rounds of interviews and they want to bring me back in for job shadowing. Does this mean I got the job and they want to just see how I am in a work environment? Is it that they got 2 or so many best candidates and see how’s the best?
7 answers 7