To let the camera know the lens focal length so the camera can use its electronics to fix optical aberations
To tell the camera which particular lens is in use with the camera
To tell the camera when when the light is the wrong color temperature