Why do we have separate meta tags for viewport and other for charset?

<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

Was wondering since name and content, along with charset are just attributes for the meta tag, can’t we combine both the tags into one?