The president was seeing soldiers recovering at Walter Reed from severe injuries suffered in the wars in Iraq and Afghanistan.