Tesla Batteries, Patriot Interceptors, Freyja and Ukraine

Europe already has its own anti-ballistic missile system called SAMP/T NG. So why is Ukraine building Freyja? And what does any of this have to do with Tesla batteries?