Why he use "is" instead of "am"
“Dobby has known it for months, sir. Harry Potter must not put himself in peril. He is too important, sir!” Dobby said to Harry.
Why did't he say " I have known it for months, sir. You must not put yourself in peril. You are too important,sir." instead?