Ich habe das Essen gekocht.

Das Essen ist gekocht.

Warum einmal "habe" und einmal "ist"?