Cancellation of subscription

I cancelled my subscription with about three weeks left on the monthly subscription which was paid for. The moment I cancelled, the subscription was terminated immediately. Something is not right here and I suspect it’s not even legal!