Hardcoding credentials can make it easier for attackers to get to them and could accidentally expose them through security issues.