All of what SuziInThe Garage said.
Build up of shit on the pistons or rust.
Pull them out. Clean them out and through some seals at it.

Check your master cylinder for crap.
Make sure the piston in that is free.
Years of unchanged fluid can build up behind it.
It may work with the pedal but doesn’t like to return.