Sets are iterable or not

As it was told that set data structure isn’t meant to be iterable we also did this in the lecture:-
for i in a: # a is a set suppose a = {1, 2, 3, 4, 5}
print(i)
and as an output, we got all the elements of the set printed…
How is this possible as sets are not iterable???