It's a problem (feature) of cyberduck, I believe.
It will change the ownership of a uploaded file to who you are logged in as, not the ownership of the original file already there (with cyberduck, you're not editing the file on the Pi -- you download a copy from the pi to the mac via...