Tamping also affects the stream charge of h2o in the coffee grounds. A poorly tamped coffee puck can lead to water passing as a result of also immediately, making a weak shot.
however You can find small evidence to https://www.coffeehype.co.uk/collections/coffee-tampers/