Even actions that are inherently permissible can be deemed forbidden when they could be misunderstood as bad or forbidden actions - even when no one is looking. Sources
See All 1190 Episodes of "Matmonim: Daf Yomi by Rabbi David Lapin"