The word "盒饭" is formed by directly combining the character "盒" (box) with "饭" (rice or meal), creating a compound that literally means "box meal" to denote a pre-packed meal served in a container.