just becuase thc is there doesn't nessicarily meant that was for survival....

that could of just been a side effect....

the resin however, (being that ti's sticky as fuck) could be conditioning to keep bugs and parasites off it (or they get stuck and die)....