Codecademy was filed as a trademark on September 6, 2012. When they did that there were some pre-existing similar names around (eg CA Code Academy filed on September 7, 2011). It's probably the case that they couldn't get a "Code Academy" based .com domain or something too. Plus portmanteau names for startups were trendy back then.