How did Bakkula make robes?

He was a rag robes wearer he searched robes in charnel ground and as ajahn @Brahmali have said even the use of psychics power should not be ruled out