In WooCommerce, you can define product attributes, such as size or color, to use be used as product options. Start by navigating to Products → Attributes.
For example an attribute could be “Size”.
Then you need to Configure its terms. Those would be “XXL,XL,L…” and others.
Once defined, these global attributes can be assigned to your variable products.