What is the primary cause of RDS of the newborn?

What is the primary cause of RDS of the newborn?