The table Day is automatically created when the date dimension is used in one of two ways:
By using expect [date] in a read statement.
By using a span date = statement.
Those two situations define the range of values for the date dimension, and the Day table is then created to contain one line for each value in the range.
The Week and Month tables are automatically created alongside Day.