Gautama did tapasya to obtain powers. For several months and years he practiced strict austerities. He did not eat and drink; he stood on a single foot; he controlled the senses; he meditated on the chosen deity. He did all this to attain certain powers.