Why do some of the function in nn.functional returns variable and some do not?

Thanks for clarification.