Why does Moldova and flag looks similar to Romania's flag?

Moldova is a province of Romania.