The indirect solar energy

Biomass is considered an example of indirect solar energy because it is the result of photosynthesis. Given that plants are the organisms that photosynthesize, why are animal wastes considered biomass?