Most often this this phrase is used to mean that you expect something done without appreciating the amount of work required to get it done. A good example is a child expecting the dinner to be delivered at the table every evening by his mother. He may get so used to having it served that he will "take it for granted" and not appreciate the work his mother have to do to prepare the meal day in and day out.