it is due to us sanctions preventing Iran from buying planes.
they have no choice apart from either resorting to ukranine and russian planes which have crashed so many times in the past few years or simply stop all iranian flights which simply is not an option.
They even struggle to get parts and sometimes get uncertified parts !!