Raphael Varane was surprised that Manchester United extended the contract of sacked manager Erik ten Hag last summer.