In FIPS we need to accept different key sized than just 2k and 3k. According to NIST.FIPS.186-5 draft, it should be perfectly fine.
For DSA keygen, we need to be able to generate keys based on P and Q parameters for ACVP testing to be able to verify the result.