The entire point of a jury of your peers is to prevent unreasonable laws being used to convict people.
There are a few benefits as for example Juries are harder to bribe and sequestered juries are harder to tamper with. But, the core issue and why they were considered so important is there a check on unjust laws or even just laws unjustly applied.