The intention is to append to the file /home/kali/.bashrc in the Kali container the command export DISPLAY=:0. But the shell on the host has the semantics that the redirection gets associated to the sudo lxc exec command, therefore it tries (and fails) to find a /home/kali/.bashrc on the host.