Because harmful bacteria may have got onto it during the defrosting process.
Cooking it kills any such bacteria off, so it is safe to freeze it once cooked. Before you eat such refrozen cooked chicken you should heat it up to a temperature that will kill off any bacteria that that may have arrived after it was cooked.