It didn't lose any population. Because of the fixed size of the House, you can lose a rep while gaining population (in California’s case, gaining more than 2.2 million between the 2010 and 2020 census.) Also, apportionment isn't tied at all to prosperitt; California didn't get any less relatively prosperous to lose a seat, so your “going from...” doesn't make any sense, even ignoring the factual error about losing population.