The giraffe presumably suggested the elephant lose weight in order to try and make it easier for her to fit into the skinny house. The elephant is already big, so losing weight would make it easier for her to move around within the structure.