Whenever you import a texture to Unreal Engine, it will convert the file to a more fitting and usable format. You can read more about it here: Texture Format Support and Settings in Unreal Engine | Unreal Engine 5.0 Documentation
As for compression, you can find information here: Texture Compression Settings | Unreal Engine Documentation
If you have any more questions please let me know!