It’s just a fluid to push the piston. Crap brakes are normally due to air in the system, sticking pistons or bad pads or pad/disc contamination but the last two we can rule out.
Seals are the most likely culprit, could be dried out or even perished.
Worth taking them off the bike, take the pads out and clean up around the pistons without squeezing the lever. Then put something inbetween the pistons that wont damage them but will stop them popping out fully and squeeze them out a bit with the lever. Clean up around them with a cotton but and then use either a bit of mineral oil or some silicone lube on the outside of the piston where it slides on the seal. Push them back in and clean up any excess oil/lube.
Next check around the plunger shaft from the lever and see if you can clean up and lube around that.
Then do a full fluid flush and re-bleed.