I think it made sense for them to hide their relationship at first because they were "just friends" for so long so they were kind of navigating the new feelings they had for each other...
Because when they were hiding their relationship, I don't think either of them actually realize the true nature of what their relationship was until a little bit further along...