Allah is The Most Wise, Most Merciful, does not order us but only for our benefit as He is The Absolute Needless. All His orders to us are based on Our benefit which is totally and completely known to Him.
Every Wajib (obligatory) act is essential for our life here and hereafter.
Every Haraam (forbidden) act is very harmful for us here and hereafter.
Every Mustahab (recommended) act is useful for us but not essential.
Every Makrouh (disliked) act is harmful but not very harmful.
Every Ja'iz (permissible) act is neither harmful nor useful.
We need to talk to Allah and remember His bounties and thank Him in our daily five prayers as Allah says in Quran (And perform Prayers to remember Me). Sura 20, verse 14.
His Knowledge is unlimited and His Mercy is unlimited, that it why He ordered us to perform Prayers of Fajr, Dhuhr, Assr, Maghrib and Isha every day. He knows that we need to talk to Him at least in five daily prayers. We believe in His Absolute Knowledge, Wisdom and Mercy, hence we abide to His orders which are definitely for our benefit.
Wassalam.