Will Smith is a star, stars often need attention and when their latest "blockbuster" flops they get nervous.
At this point they either try another epic or they go a to different "vehicle" (comedy, drama).
If the new venue they pick isn't a commercial success financially, they try to receive it as a critically acclaimed award winner.
Oscars are attention generators.