Why isn't the present tense used?
- I am wondering if you would like to come for dinner.
- Do you want to go to the cinema tonight?"
seem more felicitous, but the versions couched in the past are certainly idiomatic.
Why isn't the present tense used?
- I am wondering if you would like to come for dinner.
- Do you want to go to the cinema tonight?"
seem more felicitous, but the versions couched in the past are certainly idiomatic.
Using the past tense is a way of offering flexibility in an invitation or request. You don't need to feel compelled to accept because it is being phrased as a passing thought. A whim.
The difference between
I wonder if you'd like to come for dinner
and
I was wondering if you'd like to come for dinner
is that the second sounds more hesitant. It's used to make the invitation less direct and thus more polite. "I wonder if you'd like to come for dinner" sounds like something your boss would say, it's almost like an order to come to dinner.
There's nothing wrong with the grammar in the second form; if you are wondering now then you must have been wondering for at least a small period of time beforehand.
I was wondering, and now I am asking.
"I was wondering" gives the other more freedom to accept or refuse because it has the feeling that I will not get embarrassed if you refuse my invitation because I was and not I am ! That was in the past!
Why isn't the present tense used?
I am wondering if you would like to come for dinner.
=========================
The only word indicating tense in your example is 'am'. But in this situation, it's really only a present tense FORM. This FORM is used to be more direct, in this case, it could [note 'could' is a future] be taken as rather abrupt.
Past tense FORMS, "I was wondering" are used in English to be more indirect and therefore more polite, softer, less challenging.
Compare "Do you want something to eat?" versus "Did you want something to eat?"
Tense FORMs as opposed to the actual use of tense to mark time are simply different grammatical/pragmatic animals.