This generally occurs when WordPress does not have sufficient permission to write directly to its files. Check the ownership and permissions of the WordPress files and directories. On properly configured hosting, WordPress should normally be able to write to the required directories without repeatedly requesting FTP credentials.