Why was I charged after cancelling?
This almost always means the cancellation notice came in less than 7 days before the 1st. The system had already committed to that month's billing run, so one more payment goes through before your membership ends at the close of that following month.
Also worth checking
Any outstanding late-cancel or no-show fees are billed separately from your membership fee, and can land around the same time as a final payment.