Women were taught to fulfill this role due to nationalism. The Empire wanted to prevent Western invasion.
This statement suggests that women's roles were shaped by a desire to protect the Empire from Western invasion, which was influenced by nationalist sentiments.