HTTP headers leak technical information to potential attackers about a system. To harden the security of an application you need to disclose as little information about a system as possible.
As in .net framework it is just as important to add security headers to your asp.net core project to harden the security posture of your web application.