I've been thinking about the prime directive recently and it just doesn't make sense in the grand scheme of things. You don't involve yourself because "well what if this extinction level event was meant to happen?" Could just as easily be phrased as them being there with the capacity to fix the problem was also meant to happen.
Especially if they can magic the problem away without even exposing knowledge of their existence to the pre-warp civilization. Would people who don't know about starships really notice if a tachyon field was routed through the deflector dish to [science fiction jargon], causing the tectonic activity to stabilize?
It's one thing to not interfere with internal politics, but another entirely to not save a planet from a random space anomaly while you happen to be passing through the system.