document.getElementById('any').addEventListener()
This code works well but when i searched in console I found that- addEventListener is a method of "document.body" and getElementById is a method of "document".
So how this code "document.getElementById('any').addEventListener()" actually works?