Just curious, are you a non-native English speaker? The phrase “who knows why X (or “god knows why X”) is a pretty common phrase. It is common enough where if the author had meant nippori knows why they would have rephrased the sentence to avoid the reading that nippori knows.