The government is facing questions about why the case collapsed just weeks before a trial was due to go ahead.