Chickens are becoming popular backyard pets, in part because of the eggs, but also because raising them is fun.
I wonder if the example sentence above exhibits faulty parallelism, as in the first part of the phrase "in part X but also Y," we have X= "because of + noun," while in the second part we have Y="because+gerund."