The Wordpress requires the write permission to install the plugins on theme to the server. If it's core functionality don't get the correct permissions then it will assume to use the FTP credentials and ask for the further details. In this case you can use the following codes to bypass this issue.
define('FS_METHOD', 'direct');
I hope this will helps.