Why is being fat considered being unattractive, and being skinny seen as attractive?

Random, but I am highly curious. Why should it matter how much you weigh, when anyone can be considered beautiful. Especially in the eyes of the beholder.
Why is being fat considered being unattractive, and being skinny seen as attractive?
Post Opinion