Answer:
This is fiction. You know this because ants and grasshoppers are unable to talk like humans, so it is not based on facts, but it is based on fake characters for storytelling. The author's purpose of this passage is to show the importance of working hard and preparing for the future. As the grasshopper relaxed in the summer, he laughed as the ant worked hard and prepared itself for winter. However, later we see that the ant has the last laugh, as he is fully prepared for winter while the grasshopper is starving, where he realizes he should have been doing the same thing instead of making fun of the ant for working hard.