This is an irregular verb.
The verb ganhar has two past participles: ganhado (regular) and ganho (irregular).
Traditional grammar prefers ganhado with ter or haver (e.g., “tinham ganhado”).
With ser or estar in the passive voice, ganho is more common (e.g., “foi ganho”), although ganhado is also acceptable.
Present:
Ele ganha um bom salário.
Ele ganha um bom ordenado.
He earns a good salary.
Ela ganha o jogo.
She wins the match.
A gente ganha tempo quando sai mais cedo.
Ganhamos tempo quando saímos mais cedo.
We gain time when we leave early.
Participle:
Ele tinha ganhado muita experiência antes de começar o trabalho.
He had gained a lot of experience before starting the job.
O concurso foi ganho ontem.
The contest was won yesterday.