Why use of gate node in this situation ?

Thanks