At a guess, the brakes have been bled but the pads haven’t been reset, so the pistons on the front are closer to the rotor so require less pull. The rear had the pistons pushed all the way back (and may require new pads due to wearing down or just a proper good bleed), so there is more lever pull.
You could remove the rear wheel and progress the pistons slightly – and then rebleed the rear brake without resetting the pistons – that should mean the lever throw is shortened, but will cause rubbing when you replace worn pads with fresh ones.
You could reset the pistons on both brakes and do a full bleed on both brakes and hopefully that will give a more consistent feel to both levers.
If there is air behind the pistons, connect a syringe with a bit of fluid in it to the caliper and draw the syringe back…it should pull the air out – keep syringe higher than the caliper and as you slowly release the plunger, fluid rather than air will be sucked back into the system.