It's not only ok to ask why this position is available it's also compulsory. It would also be a good idea to ask other people to answer this question to see if their answers match up. Here is an example of a question I recently asked my manager.
“I was wondering why the position is currently open.