Why did my hot pepper oil get moldy?
Unfortunately...I think that other answer gave some dangerous information.

Sticking a raw pepper in oil and letting it sit out is dangerous.  Not only could the moisture cause mold apparently but sticking something like that in oil runs the risk for botulism.  

You could reduce the risk of mold by using dried peppers, but botulism is still there.