How do I cancel my subscription?

The subscriptions are managed by the service you subscribed to, i. e. App Store or Setapp. You need to go to your account and cancel the subscription there.

It is not sufficient to simple delete the app in order to cancel the subscription.