This is similar to the so called 'Holdo maneuver' from Star Wars: The Last Jedi .... where they take a rebel ship on a suicide mission of deliberating flying it into a large Imperial ship.
If spaceships can become very powerful sources of energy and exotic engines that can deliver and sustain massive amounts of energy .... eventually someone is going to want to turn it into a weapon.
If you can use the energy of a fancy star ship to propel a craft through space at very high speed, they can use the same technology to use it as a delivery system for a weapon ... or just use the energy created as a weapon itself .... or in the case of the Star Wars thing I mentioned above ... just use the entire ship as a weapon .... as Worf would have put it 'IT IS A GOOD DAY TO DIE!!!'