Jack / Ernest is a complicated character. He has identity issues. Since he is adopted, he doesn't know who his true family is. Lady Bracknell holds this against him and ironically blames him for losing both parents. It is difficult to determine whether he created the identities, since he did not know himself; or if it was due to his social status and having copious amounts of idle time. Regardless, he knew exactly what he was doing.