Just old age and/or calipers sitting about unused.
Sometimes pushing in and out a few times (reservoir cap off if on car) could help free it up but if its rusted on the piston internally it'll likely catch/stick soon enough again.
Not difficult to refurb yourself if you want to do a proper job regardless