Urdu is spoken in Pakistan today because of the British, not Akbar.
Prior to the British; Urdu, mainly known as Hindustani or Hindi back then was primarily concentrated in the Hindustan (UP and Delhi) region. Early British agents that travelled to modern-day Pakistan (then principally comprised of the Sikh Empire and the Emirates of Sindh) keenly observed how "none could speak the language of Hindustan", how Farsi was the official language and even noted local Farsi dialects spoken by the common people, which the British agents referred to as "Sindho-Persian".
In the late 1800s, the British began to aggressively promote Urdu/Hindustani as a part of an effort to unite their ethno-linguistically diverse subjects of the British Raj under a more central identity and language. To achieve this in modern-day Pakistan; Farsi and local languages were vigorously repressed. One method was to offer locals to trade in literature for money, as an example, there is a British poster in the Lahore museum that states "Two annas for a sword and six annas for a Punjabi qaida", the confiscated literature were then publicly burnt. Local languages were expounded as uncouth and vulgar compared to "civilized and refined" Urdu. This pro-Urdu propaganda article from 1930 Peshawar for example describes Pashto as a 'bullock cart' while Urdu as a 'motor car':
View attachment 815483
However the most successful method of promoting Urdu was propagating Urdu as an "Islamic language". Urdu was popularized as a language integral to the Muslim identity and with the rise of Muslim nationalism and the 1867 Urdu-Hindi controversy, this belief was strengthened. The Ulema and the Muslim intellectual elite (Aligarh movement) of Hindustan also strongly publicized Urdu as a "Muslim language". These initial inroads of Urdu into modern-day Pakistan consequently saw the rapid rise of the Indian Deobandi and Barelvi sects, whose madrassas and sermons helped bring Urdu to the common masses.
We speak Urdu today because of the British.