Not necessarily a bad issue on the failed emissions. There can be so many reasons, it is tough to generalize.
However, you should know that ALL sellers in CA MUST give you a car that has passed emissions within past 90 days of sale date.
Don't forget that when it is time to buy.
Good luck.