No check task when trying to execute it

I have a composite build.
In the root directory there is projectA (includedBuild)

|--projectA
        |--subprojectA
        |             |--src (with precompiled script)
        |             \--build.gradle.kts
        |--gradle.properties
        \--settings.gradle.kts

When I run gradle :projectA:tasks I see that there is a check task.
But gradle :projectA:check turns out

Cannot locate tasks that match ':projectA:check' as task 'check' not found in project ':projectA'.

Why I can’t execute gradle :projectA:check ?

If your layout description is complete, I guess the tasks output is maybe misleading.
In your description project A does not have any build script, so - unless you do bad practice cross project configuration - it does not have any plugin applied that would add a check task. What you get displayed is probably the “catch all” check task that executes “check” in all projects that have such a task.