It is because you are using kernel_size = 3, stride=1, and padding=1. This will retain the image dimension since
output_size = (input_size + 2 * padding -kernel_size)/ stride +1

Hence, output_size = input_size. Try changing one of the parameters like stride or padding and the output dimensions will change.
Hope that helps!