The Sesame Street trivia game at says, about Bert, "Ernie is like a brother to him" (in addition to his real brother, Bart.)

Originally, Ernie was going to be a kid while Bert was an adult, sort of his legal guardian, however, because Ernie always tricks Bert, they decided to make them just best friends.