carpet black lines

What are those ugly black lines in carpets under doorways?

/
In the photo above, you can see a good example of draught…