Accidentally. She wasn't trying to do anything for the animal; something (hopefully) good happened because other people reacted to the picture, not because Rihanna did herself.
(Since I don't know what will become of the animal, I'm adding the word "hopefully".)