For example, they might ask you about your return ticket or proof of onward travel. They don't want to risk having to fly you back if there's an issue. You can travel internationally on one-way tickets many times and not get asked anything, then one day you can be denied boarding.