There is not always index.php at the end of URL in WordPress websites but sometimes while a site has been migrated to another hosting or maybe the permalinks settings are not done properly in WordPress Settings then this may lead to the presence of index.php at the end of the URL.