Why do car makes make Panoramic sun/glass roofs on cars?

Why do car makes make Panorim sun/glass roofs on cars. It looks like the whole entire roof is glass but its not. Whats the point of them doing that. What does it solve