This is not a surprise; there's an old saw that I think I first read in a Buffet annual report. It says that financing tends to alternate forms for companies in terms of what makes sense: debt -> equity -> debt -> equity.
Equity offering seems likely to be much cheaper than debt right now; Tesla has great mindshare among consumers, and lots of doubters on the professional investor side.