In the frame work of stochastic quantization, the conformal anomalies of bosonic sting theory and N=1 supersrting theory are derived and the critical dimensions are obtained once again. It is shown that the quantum origin of these anomaly comes from a breaking of naive Leibnitz formula in stochastic process.