In the Hindu Philosophy, Moksha or Liberation is stated as the goal of life. It also implies escape from the cycle of birth, death & rebirth, assuming the belief in reincarnation. That means the goal of life is to live in such a way as to have no rebirth or no life again. So, to sum up in an (oversimplified?) way, the goal of life is to have no further lives.
On further examination, this paradoxical idea can be applied to other activities also. The perfect law enforcement machinery should be able to ensure that people are naturally law abiding, rendering itself (law enforcement machinery) redundant!
In a perfect healthcare system, the population should be totally healthy & disease-free, rendering hospitals & doctors unnecessary.
Nowadays, it can be observed that both the above mentioned institutions have made themselves so complex & convoluted that one suspects them of becoming self-perpetuating, losing sight that they were initiated primarily to serve the people.
The Biblical saying "Blessed are the meek for they shall inherit the earth" (Matthew 5:5) also emphasises the spiritual value of being self-effacing & not being pushful in obtaining worldly goods or honours. (In monastic orders, being singular is "superbia", a cardinal sin.)
The current emphasis on having a low Carbon footprint also underscores the importance of being mindful of the earth's resources & being frugal.
In the field of cinema also, the success of the film editing process is complete when the viewer is completely unaware of the editing.
So one is tempted to generalise that the goal of any system is to tend to make itself extinct in the quest for perfection.