Whether or not the entity is evil is up to debate. It could also be interpreted as the entity has absorbed Sydney before and now is absorbing Flynn. Why this is the case is not clear. But we do see that Flynn sometimes can make his own decision as the socket monster, so it could be interpreted that the entity needed Flynn to help it protect Jenna and/or oppose the other eviler entities.