Why is "he" capitalized when not referring to a deity?

I've seen "he" and "it" used to refer to a character who, while they weren't a deity, had more power than the character speaking of them. was this grammatically correct, or is there a rule as to why certain pronouns are capitalized when referring to someone?
7 answers 7