Ciliary muscles of human eye can contract or relax. How does it help in the normal functioning of the eye ?

When the eye is looking at a distant object the ciliary muscles get relaxed and the eye lens becomes thin, in the same way when the eye is seeing a nearby object these muscles contract and make the eye-lens thick. By changing the thickness of the eye lens while focusing the ciliary muscles helps in normal functioning of the normal human eye.