Clearly, the coolest fish in the sea

With its clear head and large green eyes, the Barreleye looks like an alien with a glass bulb on its head out of a sci-fi film…why does a fish need a transparent head?