The CIA is mainly a branch of the executive to carry out secret and usually illegal activities that the executive branch wants. It wants them to be kept secret because it knows that the public won’t accept them. So it’s highly undemocratic even domestically.