1. I periodically go off coffee, for various reasons, but frankly never notice much difference to my sleep quality.
2. I have 2 kids that deprive me of sleep much more effectively. Or, put otherwise, no matter how much I drank during the day, I fall asleep like a log. And then it's not coffee disturbing my sleep, but crying children.
I can see though that coffee abuse _could_ lead to sleep deprivation and related issues. But it's like alcohol could lead to alcoholism, but doesn't have to. Though, incidentally, apparently deliberate sleep deprivation is one method of tackling depression - so it's not all bad.
https://www.scientificamerican.com/article/why-sleep-depriva...