Do AI detectors work differently on code documentation vs regular prose? Running into weird results

cs student here who also uses AI for github readmes and project docs

been noticing that the same AI output behaves differently in detectors depending on whether it’s technical documentation or an essay. my readmes barely register even when i haven’t edited them. essays flag heavily. is that a training data thing or is there something about technical writing patterns that confuses the detectors?