What is the purpose of IERC being inherited in ERC20 contract?

Hi, so there's an IERC20 interface, ok, could be useful...
But the ERC20 contract defines all the same functions... I don't understand why it inherits from the IERC20 interface, what's the purpose? Thank you