I am not asking about the meaning of the idiom "Line one's pockets". It is clear.
to make much money, especially in an illegal or questionable way.
I wonder what line means here, and how it came to give the meaning above with the rest of the idiom.
Is this idiom that common today? Pick the scale you want.