Not sure what the experience of the pilot was who pulled the gear up, however I've seen similar potential actions by junior pilots reacting to scans/situations and checklists without considering the current state of the aircraft. Operating like a robots, good training should stamp theses bad habits out.