Who needs one, and why the reason for the request matters
The certificate is required for skilled migration and permanent residence applications abroad, for Thai permanent residence and citizenship, for adoption, for professional licensing in regulated fields, and for some employment in security, aviation, education and finance. The records division wants to know the purpose because the wording of the certificate and the accompanying letter differ, and because a certificate issued for one purpose is sometimes refused when presented for another.
For applicants who have lived in Thailand on a long-stay visa, the certificate covers the period recorded in Thai police files, not a personal declaration of good character. If you were charged and the case was dismissed, or fined for a minor offence years ago, that history may appear. We would rather tell you that in advance and prepare a correct explanation with the court disposition attached than have a migration officer discover it and treat it as concealment.
There is a second, quieter reason to get the sequence right. Most overseas authorities require the certificate to be recent, commonly within three to six months of lodgement. Applying too early in a long migration process means paying for it twice.