amazon ecs – AWS ECS – What is the relationship between capacity provider and launch type?

As I understand, there are two classes of capacity providers: those that provide Fargate resources and those that provide EC2 instances. AFAIK, the AWS Management Console only allows you to create non-fargate capacity providers.

Thusly, I have set up a cluster using the “EC2” template and created a capacity provider. I then create a new task from a task definition that requires Fargate, and I specify a custom capacity provider strategy that only uses the non-fargate capacity provider I created inside my cluster.

I am somehow able to run that task on my cluster, and the console says it is running with LAUNCH_TYPE = Fargate, even though I specified only EC2 type providers?

How does this work? What rules determine the final launch type?