Ho sorry, the input that you get is the input you pass.
In your case, in the first layer, the input is (in my example) inp which does not require grad.
In the the second layer, the input is the output of the first layer. And this Tensor does require gradients.
You called it with two Tensors with different requires_grad field, hence the difference.