Wesker went undercover into S.T.A.R.S, because he already worked for umbrella, and to them, stars, seemed like the perfect test subjects for their "latest creations" , and so thats why he got himself into STARs, and lured them into the mansion..bailed as soon as he got there, and basically watched things unfold.