Why Was I Rejected?
Is it okay to ask why you were not hired for a job?
No it is not. It will make the hirer most uncomfortable which will not be helpful to you. They know better why the person who did get the job was hired, but the reason you weren’t that person is not always that clear.
So don’t ask.