The memory function is used so that the height-adjustable desk remembers different heights. So you can easily switch between standing and sitting and the desk has remembered your previously stored height.
This feature can also be useful if you share your desk with other colleagues or family members. This way, the desk can remember different heights and everyone can work in a relaxed way.