Idiom question

The young fish were very tiny, yet each of them ate many times its own weight in solid food every day.

How is weight in correct? I thought it should be weight of.

To eat one’s weight in food means to eat an amount of food that weighs as much as one’s body does.

Man, that makes much more sense. Thanks.