This most likely happened because the trial was not canceled before it ended, and Apple automatically converted it into a paid annual subscription.
You can still request a refund through Apple's refund page. If your payment is still pending, go ahead and submit the refund request right away rather than waiting for the charge to fully process.
