Nice have so many Italian restaurants because Nice has a rich history and relationship with Italy.
The city was part of the House of Savoy, which became the Kingdom of Piedmont-Sardinia, which became part of Italy.
This historical connection could be one reason why there are many Italian restaurants in Nice.