That requirement comes from the Federal Rules for Civil Procedure. (Among other special legislation passed regarding declaratory judgments.)