DD1 is 2.3yrs and does this. Ive learnt to just ignore it. I sometimes throw in a question such as "do you want a biscuit?" and when she says no automatically without thinking, she gets caught out and told to think before saying no.
NO is just the stock answer. Can be frustrating but should pass (I hope!)