Obfuscation is meant to slow someone by making it difficult to understand. Slowing an attacker down is often employed as a form of security, that is why castles had walls, moats and multiple layers once you got inside to hinder progress.
It has been often used by companies, malware authors etc. to make it difficult for someone else to understand what is internally happening.