I do not owe you anything, so why should I give you what I own on pain of death, hmmm?
You, on the other hand, owe god your very existence. He wants you to be happy and is telling you that you will never be happy as a profane, murdering, lying, coveting (etc.) ignoramus. Whether that is true or not, you will find out soon enough because you cannot escape your own nature.
And if that isn't a clear enough comparison, imagine a loving father.
He teaches his children right and wrong because they do not know any better, right? He lends them the benefit of his experience as an adult because he knows the consequences of right and wrong actions and he wants them to gain the benefits and spare them the adverse consequences, right? Sometimes, he feels afraid for their well-being that he wishes that he can make their decisions for them -- except that restricting their choices is far worse than whatever consequence he can think of. And when his children feel self-doubt and despair, a father assures them that everything will be all right.
So, how exactly are the actions of a loving father different from god's self-revelation, hmmmm?