This is generally happening in the context of RCTs where valid causal inferences are (almost always) guaranteed via the study design, regardless of whether your analysis is frequentist or Bayesian.