This question is tantamount to asking "When does the letter E occur after I in an English word?" the answer, of course, is, "When it does."
う after お,こ,そ,と,の,... means that the o is elongated. In other words, こうし is pronounced differently from こし. It's as simple as that. There's no rule to learn.