Tsubaki behaved like that because she didn't know she loved Kousei. Her behavior post-realization was far more acceptable than before it.