What causes the black dots within a wart?

The small black dots, incorrectly referred to as “seeds,” are actually thrombosed blood vessels.