By taking a quick look, I think those are the coefficients of the modular reduction performed in the bootstrapping procedure.
They are precomputed for performance reasons I guess.
I think that two cases are necessary since by using a secret key based on the SPARSE_TERNARY distribution, the error in computations is lower, therefore an approximation with a smaller degree is used.
In case on UNIFORM_TERNARY, errors are larger, therefore a larger degree is necessary for the Chebyshev approximation of the modular reduction.
Thanks for the reply, yes, these are the one for bootstrapping.
While, I was wondering what paper describes the detailed algorithm under the hood, and why use these parameters rather than others.
The following papers include further details about your questions. Start with (1) to understand CKKS bootstrapping at a conceptual level. Move to 2 for the Chebyshev Series and the Paterson-Stokmeyer (PS) algorithm. Lastly, move to (3) to understand the effect of secret key distribution on CKKS bootstrapping.