Every test can go wrong in two ways: crying wolf (rejecting a true H0H_0H0, Type I) or missing the wolf (keeping a false H0H_0H0, Type II). Their probabilities come straight from the critical region.