Regarding the use of " \t"

What is the use of “\t” in Sout? In the video, it says that this will give four spaces but when I’m manually giving four spaces the answer is different but by using “\t” I’m getting a different answer why?

“/t” is not the same as space. it is 1 tab .

yeah but what is the difference when im using tab and when im using spaces because by spaces Im not getting the required output

because sometimes online judge doesn’t recognize tab characters as just plain spaces.