Many actors sometimes make some temporary adaptations in the process of acting without following the script arrangement. Some adaptations do not match the scene, and some adaptations can be the icing on the cake and eventually retained in the main film.
Samuel M. L. Jackson played it in "Captain Marvel", and his play was really interesting, so the director kept this shot in the main film.

After Fury and the Skurus had a big fight in the car, the dead Skuru bodies were taken to S.H.I.E.L.D. for autopsy. Fury and the Skurus pretended superiors watched the dissection and discussed what to do next.
After the dissection was complete, Fury curiously lifted the white cloth to see the sex of the Sculhus. And this move was improvised by Samuel himself.
Samuel's curious look that didn't want people to think he was perverted was so interesting that the director thought it would work well in the main film, so he kept it.
In an interview with ComicBook.com, Anna Burton revealed that the action was played by the actors themselves, and since this move made the whole scene interesting, they decided to keep it in the main film.
Ryan Frick added, "He did just that, and we kept it because we thought it was so funny. ”