Why you people do DCA strategy, don't invest all at a time, are trading or gambling?

I bought at $5.97 when price down to $3.15 I bought more now my average cost is around $4.35