Another way to say "People sometimes keep fish as pets" is "Fish can sometimes be pets."