You can see that both points sit on the x axis, which means that the line passing trough them is actually the x axis, which is in particular a horizontal line.
Every horizontal line has slope 0, so this is the case for this line.
If you didn't realize this and want to use the "rise over run" formula anyway, you'd obviously come to the same result: