With the exception of some alternative providers, British universities normally appoint a Chancellor as their most senior figure. What for?

With the exception of some alternative providers, British universities normally appoint a Chancellor as their most senior figure. What for?