I think that you are using the word discrete in different ways.

" More formally, discrete mathematics has been characterized as the branch of mathematics dealing with countable sets."

That is a quote from this webpage

That a quite different from a discrete topology or discrete metric.

What is you understanding of?discrete