Hi @Harsh Atha,
It happens because of the Cold Start of the Function apps. So when you open the function app and check the details, later when you open the container, the function gets triggered. If you are using Basic plans rather than premium or dedicated, you need to make sure function is always warm.
To keep function warm, you can use timer trigger function which always runs and make sure that function is warm.
Or else you can use Always On Option in Function App, which keeps the function always warm:
Also refer this Doc1 and Doc2 for more information.
Hope this helps.
If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment