The ring dimension is determined not only by the security level, but also on the ciphertext modulus size, error distribution etc.
Please check other similar questions on the forum, for instance the ones below, to understand more about how parameters are set: