This meaning of "rich" has nothing to do with wealth:
The meaning is
"rich" = plentiful or abundant, magnificent
"That's rich coming from you" means "that's magnificent coming from you". The person saying it is being sarcastic. Indeed, he probably means the exact opposite. You would only talk this way if you were at least a little bit angry.